CodeForPhilly / laddr

http://codeforphilly.github.io/laddr/
MIT License
61 stars 34 forks source link

support multiple gettext domains #26

Open themightychris opened 10 years ago

themightychris commented 10 years ago

Instead of 'site' as the default gettext domain, use a configurable default domain. Laddr's default domain could be "laddr" with a laddr.po file containing all the translations for the app itself.

Then when a brigade wants to translate some of their brochure content, they could create a separate .po file and not have to deal with merging upstream translation changes

themightychris commented 10 years ago

Instead of supporting separate domains the locale compiler could combine all the .po files into a single versioned site.mo file. Numeric prefixes could be used to order them and make precedence explicit. This would avoid the complication of specifying various domains when calling gettext

schlos commented 9 years ago

+1