getText crowdfounded translation - php

I'm looking for a script (there has to be one) that help me to let me user translate my getText based PHP project.
Right now, I don't have time to create a solution on my one, so I were looking for some proper open-source solution using Google Search, but I could not find anything.
There are a lot of commercial solutions for this, but I would like to use a simple PHP alternative on my own server. It does not have to have a lot of features; I just want to select the languages I need and let the people translate and check translations.

I don't know of any solutions in PHP, but there are several open source projects for web-based translation tools. For example:
Weblate is based on Python/Django and supports Git integration. I think it is used by phpMyAdmin, so it should be suitable for PHP projects.
Zanata is written in Java and used by JBoss.
I also found SimplePO on Google Code which is written in PHP, but it does not seem to support plural forms. There is also a more recently updated fork on GitHub.

Related

How can I tell if a project is done with a PHP framework?

I am working on a project (already started), but I do not know if it is done with framework since there are files in many different folders, but I do not see any syntax referring to some framework that I know of.
I hope someone can help me...
Well it would depend on the Folder Hierarchies and the code.
If the views folder has the term "blade" on it, it's definitely laravel.
If the the code of the library has the term "CI Controller" somewhere in the libraries its definitely CodeIgniter.
If the code has a lot of "wp-" string in its code, its definitely Wordpress.
TIP: Put the whole folder in Sublime, search the folder (right click the folder and choose "Find in folder...") and search for terms that are generally reserved words for mostly used frameworks.
There are different methods to identify the PHP framework used by a web application. But one of the easiest way I would like to share it with you to use this extension in your browser called Wappalyzer.
Wappalyzer is a cross-platform utility that uncovers the technologies used on websites. It detects content management systems, e-commerce platforms, web frameworks, server software, analytics tools and many more.
There are a few other tools out there that analyze what a website is using.
BuiltWith - Stand alone site, also available as a plugin
W3Techs - Stand alone site, also available as a plugin
Auto-generated comments may also help. In my case, I can tell from the comments in index.php that it's written in CodeIgniter.
If you have a copy of the project hosted somewhere you can use https://builtwith.com

How to quickyly find completed PHP website source code in Github?

I am new to Github, and want to find some good written PHP website application source code to read. But simply type 'php' as keyword and search on Github is not that effective. Is there any better way to do it?
Also, are PHP frameworks source code good to read and learn?
I think on github there is also a lot of bad written code. I can tell you that maybe working with an CMS might be something for you. While creating Plugins for CMS systems you learn the CMS itself part by part. This way you may understand why things are how they are.
In general, noone simply starts reading Code. You read Code to understand how you interact with an external system.

PhpBB's automod like software for php

I have looked and looked all over to find a way to make something similar to PhpBB's automod system they use for their software.
I cannot seem to find anything similar to this with the whole xml find and replace code updater and mod installer.
I may just be typing in the wrong keywords in Google, but does anyone know of any system like this available before I start trying to make my own?
EDIT: I mean more like a code updater. For example find and replaces in a php file.
FIND:
?>
ADD BEFORE:
echo "this is text added before the ?>";
I realize this could be done with str_replace but there is surely a system out there that already does this reliably.
The reason that a system doesn't exist outside of phpBB is because it's an incredibly poor way to manage modifications. Your question does not make it clear what you want to gain from this, but since it is your own code, you should definitely not look to copy something so awful.
For “patching” code
If you want the ability to apply updates to your code, then you should look at handling it through version control. For instance, you could develop and test in a local git repository, and once you are happy, push the changes to the server. You have many options here from a basic update script to a fully-fledged Continuous Integration solution.
phpBB have implemented a solution for patching code on your live site via a Web interface, which has many issues with security, verifiability and maintainability among others.
For exposing “plugin” functionality
If you want the ability to register plugins in parts of your code, then you should architect your code as such to allow it to be handled easily. Wordpress, MediaWiki and other projects can help you write such a structure.

php framework with sqlite, orm, i18n, l10n search addon

I'm trying to find a PHPframework to build small, multilingual sites.
Do you know a PHP framework with support for:
Sqlite (it will be little sites so no performance problem and good for copy-paste from development to production)
ORM
i18n & l10n
easy search add-on
ability to just copy-paste no need to change config for going from devel machine to production (staging)
and if you know cms with those features put it too.
Symfony 1.4.x comes with all this built it, except for searching which can be implemented using Lucen.
It has great documentation that walks you through the entire process of making a real and useful website using all the features you've mentioned. See it here.
I am also searching for such a Framework. I found one called YII. It makes use of SQLITE by default. Very easy to setup. But I am not sure if it has all the features that you are looking for.
Link to Site: http://www.yiiframework.com/download/
Detailed Documentation is also available fro reference.

Form Builder GUI for PHP

I'm looking around for an open source form building package for PHP, and figured the hive-mob-mind of StackOverflow might be able to tilt me in the right direction.
Specifically, I'm looking for a form/survey builder application. I want something that lets an end user use a web based GUI to create and configure/surveys and web-based forms.
What are the de-facto standard tools/packages that people use for this kind of thing these days. I'm interested in software packages, not in hosted services.
php-form-builder-class is an open-source project hosted on Google's Project Hosting service - http://code.google.com/p/php-form-builder-class/. There are many examples included to get you started quickly. I don't believe there is currently a GUI provided for end users to build forms though. I use this in my development and would recommend.
Hey you should check the jquery.formbuilder by botskonet on github in URL:
jquery.formbuilder
I don't know of a stand-alone package, but I know some CMS solutions have this. Maybe you could look into their code base and if it's modulare use it in your project.
One I know of that uses it is WebSiteBaker. Don't know if the code is any good thoug.
I think you want something with a GUI that your users can use to make forms...
Try this..
http://blog.sonuku.com/2009/04/11/php-formbuilder/
-FT
Apponitro pForm is the only thing I've ever seen with a GUI. You still have to paste the code into your page (and write the handler). They have a paid version MachForm with more features. I've never used them so I can't make any recommendations.

Categories