-
Notifications
You must be signed in to change notification settings - Fork 303
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
Running i18n-ize templates script translates css classes #3075
Comments
Oooh, yeah, that will break things badly when using another language. Good catch! Rather than making a blacklist in some third location, perhaps we could have a template tag or other marker right on a piece of text that should be ignored by i18n-ize. Also, @aronasorman @cpauya, this seems like yet another good reason to have a dummy language pack containing reversed/accented strings, as that would allow us to catch things like this more easily. Could someone build such a language pack and share it for testing? |
Adding this to the 0.13.x milestone, since it will break nav for i18n users. MVP is just to manually remove the existing bad translate tags. |
Hi @aronasorman and @cpauya I would like to work on this issue. Objective:
Question:
|
Good idea, please file another issue to make a dummy language pack for testing. |
Yeah, I will thanks . |
Hi @MCGallaspy . I will make a file that contains about the list Blacklisting Format
Examples :
Note: If you had some good idea please tell me so I could know so we could improve the script better. |
@arceduardvincent, I think @jamalex has a better idea:
That way it would be immediately clear to the reader what is getting picked up by the i18n-ize script and what isn't. What do you think? |
@MCGallaspy yeah it is good idea that we place a marker since minority of the blocks are must be ignored by our |
@arceduardvincent how's this coming along? |
Hello @MCGallaspy sorry that I reply late and didn't comply this issue last week, Today I work on this thanks. |
I think we can close this issue since that the fixes are being merge. |
Some css classes are defined in template blocks used, for example, to highlight an active tab. The i18n-ize script wraps these in translate tags. See here for an example. Can we add some blocks (like
{% block users_active %}
) to a blacklist for the purposes of this script?The text was updated successfully, but these errors were encountered: