Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (18 loc) · 808 Bytes

translating.md

File metadata and controls

21 lines (18 loc) · 808 Bytes

Translating

The translation code here currently relies on you having the main FixMyStreet codebase checked out in the same directory as the FixMyStreet mobile code.

Quickstart

On Debian, install "liblocale-maketext-lexicon-perl" and "libtemplate-perl". On Fedora, install "perl-Locale-gettext" and "perl-Locale-Maketext-Lexicon".

  • ./bin/gettext-extract
  • ./bin/gettext-merge
  • ../fixmystreet/commonlib/bin/gettext-makemo FixMyStreetMobileApp
  • perl -I../fixmystreet/commonlib/perllib -I../fixmystreet/local bin/localise_templates
  • Copy compiled/$lang/*.html to www/templates/$lang
  • Copy compiled/$lang/strings.js to www/js/strings.$short_lang.js

The list of languages to generate templates for should be included in locale/lang_list and should look like locale/lang_list.example