make error msg part of html (allowing translation) instead of hardcoded text

pull/71/head
reger 9 years ago
parent f8d6543a23
commit 290ca9e914

@ -17,7 +17,7 @@
<legend>
<label>UI Translation</label>
</legend>
<p>Target Language: <b>#[targetlang]#</b></p><p class="error">#[errmsg]#</p>
<p>Target Language: <b>#[targetlang]#</b></p> #(errmsg)#::<p class="error">activate a different language <a href='ConfigBasic.html'>here</a></p>#(/errmsg)#
<label for="sourcefile">Source File</label>
<select name="sourcefile" onchange="submit();">
#{filelist}#

@ -41,10 +41,10 @@ public class Translator_p {
String langcfg = sb.getConfig("locale.language", "default");
prop.put("targetlang", langcfg);
if ("default".equals(langcfg) || "browser".equals(langcfg)) {
prop.put("errmsg", "activate a different language");
prop.put("errmsg", 1); // msg: activate diff lng
return prop;
} else {
prop.put("errmsg", "");
prop.put("errmsg", 0);
}
File lngfile = new File(sb.getAppPath("locale.source", "locales"), langcfg + ".lng");

@ -8638,6 +8638,9 @@
<trans-unit id="7752d013" xml:space="preserve" approved="no" translate="yes">
<source>Target Language:</source>
</trans-unit>
<trans-unit id="67dd468b" xml:space="preserve" approved="no" translate="yes">
<source>activate a different language</source>
</trans-unit>
<trans-unit id="5ad17261" xml:space="preserve" approved="no" translate="yes">
<source>Source File</source>
</trans-unit>

Loading…
Cancel
Save