Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry: new resx-template option #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StephaneDelcroix
Copy link
Contributor

Specifying the resx-template option, along with the -g resx generator,
allows to create files, from translated .po's for aspx consumption.

Let's say you have a login.aspx.resx file used by asp.NET globalization.
You first prepare a .pot as translation template:

vernacular -i login.apsx.resx -g po --pot -o login.pot

At some point in time later, you get a fully translated login page in,
say, French, named fr.po. If we convert it at this point back into a resx,
we'll have vernacular generated ids, unsuitable for asp.NET. But we can
use our original file as template, to generate the right ids:

vernacular -i fr.po --resx-template login.aspx.resx -g resx -o
fr.aspx.resx

That's it.

Specifying the resx-template option, along with the -g resx generator,
allows to create files, from translated .po's for aspx consumption.

Let's say you have a login.aspx.resx file used by asp.NET globalization.
You first prepare a .pot as translation template:

> vernacular -i login.apsx.resx -g po --pot -o login.pot

At some point in time later, you get a fully translated login page in,
say, French, named fr.po. If we convert it at this point back into a resx,
we'll have vernacular generated ids, unsuitable for asp.NET. But we can
use our original file as template, to generate the right ids:

> vernacular -i fr.po --resx-template login.aspx.resx -g resx -o
 fr.aspx.resx

That's it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant