Permalink
Browse files

Merge pull request #34 from valib/master

Updating Czech language, adding localization labels (thanks, valib!)
  • Loading branch information...
2 parents 100c0a3 + 142ee26 commit 462f3119ec03913bde5f3604fab0e1c370f0788d @Raptor399 Raptor399 committed Apr 1, 2012
@@ -31,6 +31,7 @@
import java.util.Set;
import net.pms.io.SystemUtils;
+import net.pms.Messages;
import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
@@ -180,16 +181,7 @@
// the default profile name displayed on the renderer
private static String HOSTNAME;
- private static final String DEFAULT_AVI_SYNTH_SCRIPT =
- "#AviSynth script is now fully customisable !\n"
- + "#You must use the following variables (\"clip\" being the avisynth variable of the movie):\n"
- + "#<movie>: insert the complete DirectShowSource instruction [ clip=DirectShowSource(movie, convertfps) ]\n"
- + "#<sub>: insert the complete TextSub/VobSub instruction if there's any detected srt/sub/idx/ass subtitle file\n"
- + "#<moviefilename>: variable of the movie filename, if you want to do all this by yourself\n"
- + "#Be careful, the custom script MUST return the clip object\n"
- + "<movie>\n"
- + "<sub>\n"
- + "return clip";
+ private static String DEFAULT_AVI_SYNTH_SCRIPT;
private static final String BUFFER_TYPE_FILE = "file";
private static final int MAX_MAX_MEMORY_BUFFER_SIZE = 400;
private static final char LIST_SEPARATOR = ',';
@@ -356,6 +348,17 @@ public PmsConfiguration() throws ConfigurationException, IOException {
tempFolder = new TempFolder(getString(KEY_TEMP_FOLDER_PATH, null));
programPaths = createProgramPathsChain(configuration);
Locale.setDefault(new Locale(getLanguage()));
+ // set DEFAULT_AVI_SYNTH_SCRIPT properly according to language
+ DEFAULT_AVI_SYNTH_SCRIPT =
+ Messages.getString("MEncoderAviSynth.4")
+ + Messages.getString("MEncoderAviSynth.5")
+ + Messages.getString("MEncoderAviSynth.6")
+ + Messages.getString("MEncoderAviSynth.7")
+ + Messages.getString("MEncoderAviSynth.8")
+ + Messages.getString("MEncoderAviSynth.9")
+ + Messages.getString("MEncoderAviSynth.10")
+ + Messages.getString("MEncoderAviSynth.11")
+ + Messages.getString("MEncoderAviSynth.12");
}
/**
@@ -533,35 +533,35 @@ public void keyReleased(KeyEvent e) {
builder.addLabel(Messages.getString("MEncoderVideo.11"), cc.xy(1, 31));
Object data[] = new Object[]{
configuration.getMencoderSubCp(),
- "cp1250 /* Windows - Eastern Europe */",
- "cp1251 /* Windows - Cyrillic */",
- "cp1252 /* Windows - Western Europe */",
- "cp1253 /* Windows - Greek */",
- "cp1254 /* Windows - Turkish */",
- "cp1255 /* Windows - Hebrew */",
- "cp1256 /* Windows - Arabic */",
- "cp1257 /* Windows - Baltic */",
- "cp1258 /* Windows - Vietnamese */",
- "ISO-8859-1 /* Western Europe */",
- "ISO-8859-2 /* Western and Central Europe */",
- "ISO-8859-3 /* Western Europe and South European */",
- "ISO-8859-4 /* Western Europe and Baltic countries */",
- "ISO-8859-5 /* Cyrillic alphabet */",
- "ISO-8859-6 /* Arabic */",
- "ISO-8859-7 /* Greek */",
- "ISO-8859-8 /* Hebrew */",
- "ISO-8859-9 /* Western Europe with amended Turkish */",
- "ISO-8859-10 /* Western Europe with Nordic languages */",
- "ISO-8859-11 /* Thai */",
- "ISO-8859-13 /* Baltic languages plus Polish */",
- "ISO-8859-14 /* Celtic languages */",
- "ISO-8859-15 /* Added the Euro sign */",
- "ISO-8859-16 /* Central European languages */",
- "cp932 /* Japanese */",
- "cp936 /* Chinese */",
- "cp949 /* Korean */",
- "cp950 /* Big5, Taiwanese, Cantonese */",
- "UTF-8 /* Unicode */"
+ Messages.getString("MEncoderVideo.96"),
+ Messages.getString("MEncoderVideo.97"),
+ Messages.getString("MEncoderVideo.98"),
+ Messages.getString("MEncoderVideo.99"),
+ Messages.getString("MEncoderVideo.100"),
+ Messages.getString("MEncoderVideo.101"),
+ Messages.getString("MEncoderVideo.102"),
+ Messages.getString("MEncoderVideo.103"),
+ Messages.getString("MEncoderVideo.104"),
+ Messages.getString("MEncoderVideo.105"),
+ Messages.getString("MEncoderVideo.106"),
+ Messages.getString("MEncoderVideo.107"),
+ Messages.getString("MEncoderVideo.108"),
+ Messages.getString("MEncoderVideo.109"),
+ Messages.getString("MEncoderVideo.110"),
+ Messages.getString("MEncoderVideo.111"),
+ Messages.getString("MEncoderVideo.112"),
+ Messages.getString("MEncoderVideo.113"),
+ Messages.getString("MEncoderVideo.114"),
+ Messages.getString("MEncoderVideo.115"),
+ Messages.getString("MEncoderVideo.116"),
+ Messages.getString("MEncoderVideo.117"),
+ Messages.getString("MEncoderVideo.118"),
+ Messages.getString("MEncoderVideo.119"),
+ Messages.getString("MEncoderVideo.120"),
+ Messages.getString("MEncoderVideo.121"),
+ Messages.getString("MEncoderVideo.122"),
+ Messages.getString("MEncoderVideo.123"),
+ Messages.getString("MEncoderVideo.124")
};
MyComboBoxModel cbm = new MyComboBoxModel(data);
@@ -926,7 +926,7 @@ public void keyReleased(KeyEvent e) {
public void actionPerformed(ActionEvent e) {
Color newColor = JColorChooser.showDialog(
(JFrame) (SwingUtilities.getWindowAncestor((Component) PMS.get().getFrame())),
- "Choose Subtitles Color",
+ Messages.getString("MEncoderVideo.125"),
subColor.getBackground());
if (newColor != null) {
subColor.setBackground(newColor);
@@ -55,6 +55,15 @@ LooksFrame.25=About
LooksFrame.26=FOR TESTING ONLY, POSSIBLY UNSTABLE
MEncoderAviSynth.2=Video decoder settings for AviSynth engine only
MEncoderAviSynth.3=Enable AviSynth variable framerate change into a constant framerate (convertfps=true)
+MEncoderAviSynth.4=#AviSynth script is now fully customisable !\n
+MEncoderAviSynth.5=#You must use the following variables (\"clip\" being the avisynth variable of the movie):\n
+MEncoderAviSynth.6=#<movie>: insert the complete DirectShowSource instruction [ clip=DirectShowSource(movie, convertfps) ]\n
+MEncoderAviSynth.7=#<sub>: insert the complete TextSub/VobSub instruction if there's any detected srt/sub/idx/ass subtitle file\n
+MEncoderAviSynth.8=#<moviefilename>: variable of the movie filename, if you want to do all this by yourself\n
+MEncoderAviSynth.9=#Be careful, the custom script MUST return the clip object\n
+MEncoderAviSynth.10=<movie>\n
+MEncoderAviSynth.11=<sub>\n
+MEncoderAviSynth.12=return clip
MEncoderVideo.0=Skip loop filter deblocking for h264. Can degrade quality.
MEncoderVideo.1=Video/Audio decoder settings for MEncoder engine only
MEncoderVideo.2=A/V sync alternative method
@@ -115,6 +124,36 @@ MEncoderVideo.92=DVD/VOBsub subtitle quality (0-4) (higher is better):
MEncoderVideo.93=Add borders for overscan compensation:
MEncoderVideo.94=Forced sub:
MEncoderVideo.95=Forced tags:
+MEncoderVideo.96=cp1250 /* Windows - Eastern Europe */
+MEncoderVideo.97=cp1251 /* Windows - Cyrillic */
+MEncoderVideo.98=cp1252 /* Windows - Western Europe */
+MEncoderVideo.99=cp1253 /* Windows - Greek */
+MEncoderVideo.100=cp1254 /* Windows - Turkish */
+MEncoderVideo.101=cp1255 /* Windows - Hebrew */
+MEncoderVideo.102=cp1256 /* Windows - Arabic */
+MEncoderVideo.103=cp1257 /* Windows - Baltic */
+MEncoderVideo.104=cp1258 /* Windows - Vietnamese */
+MEncoderVideo.105=ISO-8859-1 /* Western Europe */
+MEncoderVideo.106=ISO-8859-2 /* Western and Central Europe */
+MEncoderVideo.107=ISO-8859-3 /* Western Europe and South European */
+MEncoderVideo.108=ISO-8859-4 /* Western Europe and Baltic countries */
+MEncoderVideo.109=ISO-8859-5 /* Cyrillic alphabet */
+MEncoderVideo.110=ISO-8859-6 /* Arabic */
+MEncoderVideo.111=ISO-8859-7 /* Greek */
+MEncoderVideo.112=ISO-8859-8 /* Hebrew */
+MEncoderVideo.113=ISO-8859-9 /* Western Europe with amended Turkish */
+MEncoderVideo.114=ISO-8859-10 /* Western Europe with Nordic languages */
+MEncoderVideo.115=ISO-8859-11 /* Thai */
+MEncoderVideo.116=ISO-8859-13 /* Baltic languages plus Polish */
+MEncoderVideo.117=ISO-8859-14 /* Celtic languages */
+MEncoderVideo.118=ISO-8859-15 /* Added the Euro sign */
+MEncoderVideo.119=ISO-8859-16 /* Central European languages */
+MEncoderVideo.120=cp932 /* Japanese */
+MEncoderVideo.121=cp936 /* Chinese */
+MEncoderVideo.122=cp949 /* Korean */
+MEncoderVideo.123=cp950 /* Big5, Taiwanese, Cantonese */
+MEncoderVideo.124=UTF-8 /* Unicode */
+MEncoderVideo.125=Choose Subtitles Color
NetworkTab.0=Language [needs application restart]:
NetworkTab.1=Browse compressed archives (.rar/.zip/.cbr)
NetworkTab.2=Generate thumbnails
@@ -235,6 +274,8 @@ TrTab2.44=\nthe more your CPU will suffer\! Also, don't expect to fit a 1080p ac
TrTab2.50=Maximum number of audio channels to output:
TrTab2.51=Definitely disable subtitles
TrTab2.52=Chapters \#Transcode\# folder support / Interval in minutes:
+TrTab2.55=2 channels (Stereo)
+TrTab2.56=6 channels (5.1)
TrTab2.60=Great quality
TrTab2.61=Lossless quality
TrTab2.62=Good quality
Oops, something went wrong.

0 comments on commit 462f311

Please sign in to comment.