Edit
by Gourav Khandelwal - 9 years ago (2016-03-15)
Multilanguage script without database
| I need a multilanguage script to run without using a database. I am making a Web site which is being converted into a multilanguage site, so please suggest me packages to help me on this. |
- 1 Clarification request
1.
by Dave Smith - 9 years ago (2016-04-10) Reply
In my experience, the fastest way to implement translation localization is to use Google Translate. It is as simple as adding a javascript snippet they provide and they take care of the rest.
The downside is that you are stuck with their translations, which are not always accurate.
Dave
Ask clarification
5 Recommendations
AlText: Translate texts extracted from code into INI files
This package can translate texts extracted from code into INI files.
It provides classes that can parse PHP code and extract text strings to be translated by detecting calls to the function altext().
The extracted texts are stored in .INI files that can be loaded by the application scripts to get the localized texts into different idioms.
The altext() function is similar to the PHP gettext() function. It uses text defined in an INI file with translations for the texts and returns the respective translated text using an hash of the requested text.
There is also a class that can merge existing translations with new ones extracted from more up to date source code.
| by Everton da Rosa package author 155 - 8 years ago (2016-06-02) Comment
Translate texts extracted from code into INI files |
This package can translate application texts using INI files.
It can determine the current page language from a given request variable or default to the first language in an array of supported language settings defined in the config.php script.
The class loads the texts for the current language from a INI file.
It also returns the application strings translated for the current language. The string may be formatted with optional parameters as defined for sprintf.
If the chosen language translations file does not exist, the class writes a new file for that language based on the default language texts.
| by alaca package author 40 - 8 years ago (2016-05-20) Comment
This package will fit perfectly. |
This class can get application language texts from files.
It can get the current user preferred language from session, GET or POST variables.
The class loads a text file with application texts from a file which contains the text for each application text string in different languages.
The class returns a given application text in a given supported language.
Currently it supports English, Spanish and French languages.
The class can also add new application texts to the translations file.
| by Bharat Parmar package author 455 - 9 years ago (2016-04-07) Comment
This class can get application language texts from files.
It can get the current user preferred language from session, GET or POST variables.
The class loads a text file with application texts from a file which contains the text for each application text string in different languages.
The class returns a given application text in a given supported language.
Currently it supports English, Spanish and French languages.
The class can also add new application texts to the translations file. |
PHP i18N Library: Translate application texts loaded from XML files
This class can translate application texts loaded from XML files.
It can load application texts for a given application context and language from XML files in the languages directory.
The class returns given strings translated the loaded language.
The class use two levels XML files to translate. It can load one or more files.
With the second level you can even use number comparison for plural forms (zero, one or more than one for example).
It can also use one or more translation files.
| by Lionel F. Lebeau package author 160 - 9 years ago (2016-03-17) Comment
Hello.
This package can use multiple translation files.
It uses XML files where you can put two levels of translation for complex cases. You can even implement comparisons for numeric translations. |
This class can translate application texts with translation files.
It can load translations of texts for a given language from a file in the translations directory for a given language.
The class returns the translated text or the original text if the translation is missing in the file.
| by Name Removed package author 65 - 9 years ago (2016-03-17) Comment
Hello, take a look into my class :) |