English htmls are considered to use the default path.
This commit is contained in:
parent
69b61bda96
commit
9cbca783d6
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12804,7 +12804,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12811,7 +12811,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12813,7 +12813,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12792,7 +12792,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12782,7 +12782,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12788,7 +12788,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12794,7 +12794,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -13736,7 +13736,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12646,7 +12646,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12653,7 +12653,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12638,7 +12638,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12644,7 +12644,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -156,6 +156,10 @@ public class HtmCache
|
||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||
}
|
||||
}
|
||||
if (content == null)
|
||||
{
|
||||
content = HTML_CACHE.get(path);
|
||||
}
|
||||
|
||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||
{
|
||||
|
@ -12644,7 +12644,7 @@ public final class PlayerInstance extends Playable
|
||||
_lang = Config.MULTILANG_DEFAULT;
|
||||
}
|
||||
|
||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
||||
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user