turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 156 forks source link

messages.po customization #305

Closed Sshnyari closed 7 years ago

Sshnyari commented 7 years ago

Is there a way to customize the names of the po[t] files or use multiple files as translation source ?

Multiple file can be useful if you want to split wordings into categories/contexts and load only the needed ones instead of having one huge po file to maintain.

turquoiseowl commented 7 years ago

Not supported as it stands. Agains, feel free to submit PR. Thanks.

Sshnyari commented 7 years ago

Here is a small patch for customizing po/pot filename.

For the multiple files feature, what do you think about it in your end ?

file.txt

Sshnyari commented 7 years ago

Here is a quick patch for using multiple po files (it includes the previous patch) file.txt

ajbeaven commented 7 years ago

This would be awesome.

It would also be nice to be able to tag nuggets with a category and have PostBuild generate separate .pot files that only include translations in the specified category.

My use case is that an administration panel on my site only requires one translation but the public facing side of the site requires many different translations.

turquoiseowl commented 7 years ago

https://github.com/turquoiseowl/i18n#po-customization.