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

'DisableReferences' switch should work like the GetText '--no-location' switch #341

Open
Razsiel opened this issue May 12, 2017 · 4 comments
Labels

Comments

@Razsiel
Copy link

Razsiel commented May 12, 2017

Hey turquoiseowl,

We're using your tool for our website, but have come across some issues regarding the generated .po files using git; the generated file location-references (#: folder/file.extension). Since we are continuously adding new code, the po files are constantly viewed as changed by our git tracker, which has caused some nasty conflicts already.

A solution to our problem would be to be able to not have these lines generated. I tried updating to 2.1.10, hoping the DisabledReferences option fixed it, but it seems I was mistaken. I've searched online and found that GNU's gettext supports disabling these location reference (https://www.gnu.org/software/gettext/manual/html_node/msgmerge-Invocation.html (search for '--no-location')) and was wondering if this could be included in i18n via an option 'DisableLocationComments' (or something similair).

I tried implementing it myself, but unfortuantely to no avail.

@turquoiseowl
Copy link
Owner

It sounds like you want what the i18n.DisableReferences setting should do. What happens when you set that to true? (NB: it is DisableReferences rather than DisabledReferences as you wrote.)

@Razsiel
Copy link
Author

Razsiel commented May 12, 2017

I did have DisableReferences correctly in my web.config file (it was a typo in the issue description) and have it set as true. If I then build the project and the i18n.PostBuild.exe runs it regenerates any manually removed location comments.

@turquoiseowl
Copy link
Owner

It looks to be as possible bug then with the DisableReferences feature.

I'm up to my neck in other work at the moment so cannot say when I'll be able to look into it. Any chance you wouild be able to debug it yourself?

Thanks.

@turquoiseowl turquoiseowl changed the title Feature request: Add '--no-location' comment support 'DisableReferences' switch should work like the GetText '--no-location' switch May 14, 2017
@Razsiel
Copy link
Author

Razsiel commented May 15, 2017

I'll have to talk with my employer first to get the required time and freedom to do it since it's a non-prio item on our list at the moment, just a QoL improvement. Will keep you up to date!

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

No branches or pull requests

2 participants