L20n/Background: Difference between revisions

Jump to navigation Jump to search
m
→‎German sample: spelling of daisy
mNo edit summary
m (→‎German sample: spelling of daisy)
Line 39: Line 39:
Es ist Zeit für ein bisschen Umweltschutz!
Es ist Zeit für ein bisschen Umweltschutz!


Let's leave the zero value out for this discussion for the moment, because I really just entered fun values there. Let's assume that we're in the scenario of a generic toolkit message, and ''Jägermeister'' and ''daiy'' would be product specific. You could just as well think ''Firefox'' and ''Thunderbird''. Let's have two variables in this sample, ''name'' for ''Jägermeister'' or ''daisy'' and ''number'' for the values from 10 to 1.
Let's leave the zero value out for this discussion for the moment, because I really just entered fun values there. Let's assume that we're in the scenario of a generic toolkit message, and ''Jägermeister'' and ''daisy'' would be product specific. You could just as well think ''Firefox'' and ''Thunderbird''. Let's have two variables in this sample, ''name'' for ''Jägermeister'' or ''daisy'' and ''number'' for the values from 10 to 1.


For positive integers, gettext offers a reasonable approach, i.e., you have a macro that returns an index based on a number, and you use that to index an array. gettext does not offer a solution for the grammar and gender problems in this example, though.
For positive integers, gettext offers a reasonable approach, i.e., you have a macro that returns an index based on a number, and you use that to index an array. gettext does not offer a solution for the grammar and gender problems in this example, though.

Navigation menu