-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Exemplified menu entries for change case menu #9382
Conversation
…isplayed when you stay long over the menu) to properly reflect exemplified cases. [JabRef#9339](JabRef#9339)
To ease organizational workflows I have linked the pull-request to the issue with syntax as described in https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
|
Have a look at the failing tests please and also the l10n https://devdocs.jabref.org/code-howtos/localization.html |
Hello, I've used l10n for menu entries and try to fix test issues but I still have 2 problems :
|
@@ -1469,7 +1469,7 @@ Converts\ units\ to\ LaTeX\ formatting.=Converts units to LaTeX formatting. | |||
HTML\ to\ LaTeX=HTML to LaTeX | |||
LaTeX\ cleanup=LaTeX cleanup | |||
LaTeX\ to\ Unicode=LaTeX to Unicode | |||
Lower\ case=Lower case | |||
Lower\ case=lower case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The keys on the left and the values must be equal,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lower\ case=lower case | |
lower\ case=lower case |
You can ignore mac. It does not work on forks. The unit test fails because the left and right side in the properties file must be equal. This is for the english version. You don't have to change other localisation files |
Ok ty for mac test! |
The test only checks the English version because obviously for the other languages this cannot be equal. Translators can write whatever the right translations is. |
Ok but where am I supposed to put the exemplifies menu entries strings if I can't put them in JabRef_en.properties like this ? |
@manu-vaillant-afk You changed the right side (the values) of the properties. You now have to change the left side (the keys) as well in the en.properties file. |
@Siedlerchr if I change the keys in en.properties file, I'll also have to change keys in all other languages properties files. For example, in the file java/org/jabref/logic/formatter/casechanger/LowerCaseFormatter.java : Tell me if it's what you want and I'll make these changes. |
Yes, you have to adjust the pieces in the code and the keys in the English properties file. You don't need to change the other language files |
@Siedlerchr I've try it locally but as I was thinking, it's not working well. For me, there is no reason to change these keys, I just think that the test is not very useful and could be remove ? |
This is why this test is only checking for the english language file consistency. This test is in my eyes very useful, as it checks for the language keys consistent to the language resources, as it makes the sources more easily readable und keeps our coding style in JabRef consistent. You don't have to change the keys in every other language file, this is done by crowdin automatically and many users, who help us translate JabRef to many different languages. |
@calixtus @Siedlerchr Ok now the test is successful, tell me if I have to change anything else ! |
Fixes #9339
We modified the Change case sub-menus and their corresponding tips (displayed when you stay long over the menu) to properly reflect exemplified cases.
I've simply changed the text visible in the sub-menus and their tips to match exemplified cases #9339.
Here is a screenshot of the modified sub-menus.
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)