Skip to content

Commit

Permalink
Fixed a bundle loading misplacement for the translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ldiogoz committed Aug 30, 2016
1 parent d90f91f commit ac4520f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 29 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/aCCinaPDF/nbproject/private/
/aCCinaPDF/build/
/aCCinaPDF/build/
/aCCinaPDF/dist/
18 changes: 0 additions & 18 deletions aCCinaPDF/aCCinaPDF.cfg

This file was deleted.

Binary file removed aCCinaPDF/keystore/aCCinaPDF_cacerts
Binary file not shown.
21 changes: 11 additions & 10 deletions aCCinaPDF/src/model/CCSignatureSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ public CCSignatureSettings(boolean forceCreateConfigFile) {
return;
}

switch (languageStr) {
case "en-US":
Bundle.getBundle().setCurrentLocale(Bundle.Locales.English);
break;
case "pt-PT":
Bundle.getBundle().setCurrentLocale(Bundle.Locales.Portugues);
break;
default:
Bundle.getBundle().setCurrentLocale(Bundle.Locales.English);
}

String keystoreStr = getConfigParameter("keystore");
if (keystoreStr == null) {
CCInstance.getInstance().setKeystore(CCInstance.getInstance().getDefaultKeystore());
Expand Down Expand Up @@ -123,16 +134,6 @@ public CCSignatureSettings(boolean forceCreateConfigFile) {
Settings.getSettings().setKeystorePath(keystoreStr);
}
}
switch (languageStr) {
case "en-US":
Bundle.getBundle().setCurrentLocale(Bundle.Locales.English);
break;
case "pt-PT":
Bundle.getBundle().setCurrentLocale(Bundle.Locales.Portugues);
break;
default:
Bundle.getBundle().setCurrentLocale(Bundle.Locales.English);
}
Settings.getSettings().setPdfVersion(pdfVersionStr);
Settings.getSettings().setRenderImageQuality(Integer.valueOf(renderQualityStr));
setPrefix(prefixStr);
Expand Down

0 comments on commit ac4520f

Please sign in to comment.