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

Localize Splash and Connection Prefs #781

Merged
merged 15 commits into from Feb 11, 2016

Conversation

silverailscolo
Copy link
Contributor

Localize button names
Add German .properties
Fix spelling on Splash and localize (picks up OS Locale if available)
Partial localization of DP3 menubar via xml

…cale

Create Disable Connection checkbox name from .properties instead of hard coded (jmrix), add keys
Create Use Non-Standard Msg checkbox name from .properties instead of hard coded (GuiLaf), add keys
Cleanup keys in .properties files to pass i18n-consistency-check
Some German .props in top menus
…h screen. May explain why some .properties aren't read to build Preferences.
In xml/config/parts/jmri/jmrit/roster/swing/RosterFrame*.xml (was expecting .properties to have the same effect)
Will add a pointer to Translation Help if this is the right method for this part.
Add German menu translations for DP3
@@ -40,7 +40,7 @@
*/
public class ConnectionsPreferencesPanel extends JTabbedPane implements ManagingPreferencesPanel {

private static final ResourceBundle rb = ResourceBundle.getBundle("apps.AppsConfigBundle"); // NOI18N
private static final ResourceBundle rb = ResourceBundle.getBundle("apps.AppsConfigBundle"); // NOI18N for some items
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The //NOI18N comment should remain as-is this is used by several IDE's to flag a specific text string as not being for internationalisation.

Changing this comment, might break that functionality.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, hadn't thought of that. See #782 and silverailscolo#15

@mattharris
Copy link
Member

I've added a few comments about minor things, but thanks - this is a great step forward for JMRI and its use in other languages. Thanks!

public String getTitle() {
return rb.getString("TitlePreferences");
}
public String getTitle() { return Bundle.getMessage("TitlePreferences"); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be multi line. We want to avoid making unnecessarily compact code.

@rhwood
Copy link
Contributor

rhwood commented Feb 11, 2016

Thank you for your work on this.

You might find the "i18n-consistency-check" ant target helpful.

The "// NOI18N" comments indicate that the string literal on the line containing the comment should not be translated.

It looks like an MacOS X -specific value crept in for the OUTPUT_DIRECTORY parameter.
This puts it back the way it was.

Note: I'm not an Idea user, so can't directly test this.
bobjacobsen and others added 4 commits February 11, 2016 05:38
The "// NOI18N" comment means that a string on that line shouldn't be translated, e.g. its a translation key or something else that's _not_ presented to the user. Some IDEs need it just like that, which means that it shouldn't mix with _other_ comment text about that line.

This moves that magic comment to the end for one line in the file.
@bobjacobsen bobjacobsen added this to the 4.3.3 milestone Feb 11, 2016
Ellipsis back after Context and System Console (de), different ideas on Fensterhilfe. Prefer to adhere to Apple User Interface Guide (ellipses belong with menus that provide a dialog for follow up action).
bobjacobsen added a commit that referenced this pull request Feb 11, 2016
Localize Splash and Connection Prefs
@bobjacobsen bobjacobsen merged commit 8f26d98 into JMRI:master Feb 11, 2016
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.

None yet

4 participants