Talk:Translations - Web site interface

From Open Food Facts wiki
Revision as of 17:55, 1 May 2015 by Teolemon (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
       fi => 'kirjautua',
       de => 'sich anmelden',
       hu => 'belép',
       is => 'skrá inn',
       ja => 'ログインする',
       pl => 'zalogować się'
       pt => 'fazer o login',
       sv => 'logga in',
       vo => 'nunädön'

GiganFormat to PO

#categories_example => {
	fr => "Sardines à l'huile d'olive, Mayonnaises allégées, Jus d'orange à base de concentré",
	en => "Sardines in olive oil, Orange juice from concentrate",
	el => "Σαρδέλες σε ελαιόλαδο, Χυμός πορτοκάλι από συμπυκνωμένο",
	es => "Sardinas en aceite de oliva, Mayonesa ligera, Zumo de naranja procedente de concentrado",
	it => "Sardine in olio di oliva, Succo d'arancia a base di concentrato", 
	pt => "Sardinha em óleo de oliva, Suco de laranja concentrado",
	pt_pt => "Sardinha em azeite, Sumo de laranja concentrado",
	ro => 'Sardine în ulei de măsline, Suc de portocale pe bază de concentrat',
	he => "סרדינים בשמן זית, מיץ תפוזים עשוי רכז",
	nl => "Sardines in olijfolie, Lightmayonaise, Sinaasappelsap op basis van geconcentreerd sap",
	de => "Sardinen in Olivenöl, Orangensaft aus Orangensaftkonzentrat",
},
  1. Read a string
  2. Find English version
  3. For each language, generate a po file

Generate fr.po

# categories_example
msgid "Sardines in olive oil, Orange juice from concentrate"
msgstr "Sardines à l'huile d'olive, Mayonnaises allégées, Jus d'orange à base de concentré"

Generate es.po

# categories_example
msgid "Sardines in olive oil, Orange juice from concentrate"
msgstr "Sardinas en aceite de oliva, Mayonesa ligera, Zumo de naranja procedente de concentrado"

PO to GiganFormat

  1. Download po for all languages from launchpad
  2. Patch all msgstr with the same msgid together, and add the #comment as an identifier