• Stars
    star
    4
  • Rank 3,304,323 (Top 66 %)
  • Language
    PHP
  • Created over 12 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A system for maintaining a localization database. An application inserts "prompts" or "keys" where ever a language specific string is required. On execution, the application pulls the actual string in the appropriate language from the database. Localization Editor is a web app that makes it easy to create and maintain the database. It was particularly designed to facilitate multi-language web pages, but could be used anywhere support for various languages is desired. The maintenance of the text is completely separated from maintenance of the source code and can be done by translators with no knowledge of the source code. The Editor uses php, javascript and ajax to manage the localization information which is stored in an sqlite database. The localized text strings are stored in a database. When an application needs a text string it is pulled from the data base using the prompt and language code as keys. For example a web page would include the string: <?php print local("hello_world") ?> Where "local" is a function that queries the localization database using the string "hello_world" and a stored language cookie. local might return "Hello World", or "Hola Mundo", or "Hallo Welt".