Translation Update

#23: Added support for Portuguese, French, Spanish & Latin American Spanish, German, Italian, Japanese, and Korean
Updated Favorite type symbols to the PLA symbols rather than english words on PMD backgrounds.
Close #32: Added Favorite Baby and Favorite New Evo boxes
Close #46: Fix Castform, missing Pikas, GMax Melmetal
overhaul CSS to be simpler (removed over 1000 lines woo)
This commit is contained in:
cajun 2023-05-07 19:52:05 -05:00
parent 35b8571c0c
commit b1891f9a1b
46 changed files with 972 additions and 1902 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1000 B

After

Width:  |  Height:  |  Size: 1000 B

2689
index.html

File diff suppressed because it is too large Load Diff

View File

@ -1446,7 +1446,8 @@ var arrays = {
"PIKACHU_10",
"PIKACHU_11",
"PIKACHU_12",
"PIKACHU_13"
"PIKACHU_13",
"PIKACHU_14",
],
[
"YAMPER",
@ -1463,7 +1464,8 @@ var arrays = {
"REGIELEKI",
"VOLTORB_1",
"ELECTRODE_1",
"PIKACHU_70"
"PIKACHU_70",
"PIKACHU_15"
],
[
"PAWMI",
@ -2710,6 +2712,7 @@ var arrays = {
"ZERAORA",
"MELTAN",
"MELMETAL",
"MELMETAL_1",
"ZARUDE",
"ZARUDE_1"
],
@ -3249,7 +3252,7 @@ var arrays = {
"MANTYKE",
"TOXEL"
],
"NewEvo": [
"NewEvolution": [
"CROBAT",
"BELLOSSOM",
"ANNIHILAPE",

62
reverser.html Normal file
View File

@ -0,0 +1,62 @@
<html>
<head>
<style>
</style>
<script language="JavaScript">
function inverter() {
let ta = document.getElementById("import");
ta.value = reverse_words(ta.value);
}
function reverse_words(txt) {
let str = "";
let lines = txt.split("\n\n");
console.log(lines);
for(let l in lines) {
let words = lines[l].replace("\n", " ").split(" ");
let temp = ""
for(let w in words) {
temp = shift_punc(words[w]) + " " + temp;
}
str += temp + "\n";
}
return str;
}
function shift_punc(w) {
let pmatch = w.match(/([()“”"..,,:;]+)/);
console.log(pmatch);
if(pmatch) {
w = w.replace(pmatch[1], "");
if(pmatch[1].match(/[(“]/)) {
w = w + pswap(pmatch[1]);
}else{
w = pswap(pmatch[1]) + w;
}
}
return w;
}
function pswap (p) {
if(p.match("“")) {
p = p.replace("“", "”");
}else{
p = p.replace("”", "“");
}
if(p.match(/[(]/)) {
p = p.replace("(", ")");
}else{
p = p.replace(")", "(");
}
if(p.length > 1) {
p = p.split("").reverse().join("");
}
return p;
}
</script>
</head>
<body>
<textarea id="import" rows="10" cols="100"></textarea>
<br>
<input type="button" value="Invert" onclick="inverter();">
</body>
</html>

View File

@ -29,7 +29,7 @@ for(var n in lang_code)
code_lang[lang_code[n]] = n;
var regional_suffix = ["Español", "Português", "Français", "Italiano"];
var trailing_fav = ["Français"]
var no_spaces = ["日本", "简中", "繁中"];
var no_spaces = []//"日本", "简中", "繁中"];
var fallbacks = {
"Español_Latino": "Español"
}
@ -50,17 +50,78 @@ var femme = {
var font_sizes = {
"ShinyCharm1": {
"English": 24,
"Português": 20,
"Français": 22
"Português": 22,
"Français": 22,
"Deutsch": 22,
"日本": 20
},
"ShinyCharm2": {
"English": 24,
"Português": 20,
"Français": 22
"Português": 22,
"Français": 22,
"Deutsch": 22,
"Italiano": 22,
"한국어": 22,
"日本": 20
},
"Favorite": {
"English": 27,
"Français": 23
"Français": 23,
"日本": 25,
},
"FavAlone": {
"English": 25,
"한국어": 22,
"日本": 18
},
"Bug": {
"English": 25,
"Italiano": 20
},
"Ghost": {
"English": 25,
"Português": 23,
"日本": 22,
"Español": 23,
"Español_Latino": 23
},
"Poison": {
"English": 25,
"Português": 23
},
"GimmickForm": {
"English": 23,
"Português": 20,
"Français": 25,
"Español": 25,
"Español_Latino": 25,
"Deutsch": 22,
"Italiano": 20,
"日本": 18
},
"Fairy": {
"English": 25,
"日本": 18
},
"Psychic": {
"English": 25,
"日本": 20
},
"Dragon": {
"English": 25,
"日本": 22
},
"Fighting": {
"English": 25,
"日本": 22
},
"Normal": {
"English": 25,
"日本": 22
},
"Starter": {
"English": 25,
"日本": 22
}
}
function getTranslString (check) {
@ -91,7 +152,7 @@ var translatable = {
"PseudoLegend": {
"English": "Pseudo Legend",
"Español": "Pseudo-Legendario",
"Português": "Pseudo Lendário",
"Português": "Pseudo<br/>Lendário",
"Deutsch": "Pseudolegendär",
"日本": "600族",
"简中": "",
@ -350,6 +411,19 @@ var translatable = {
"Italiano": ["Preferito", "Preferita"],
"한국어": ["가장 좋아하는", "가장 좋아하는"]
},
"FavAlone": {
// masc / femme
"English": "Favorite",
"Español": "Favorito",
"Português": "Favorito",
"Deutsch": "Favorit",
"日本": "お気に入り",
"简中": "最喜欢的",
"繁中": "最喜歡的",
"Français": "Préféré",
"Italiano": "Preferito",
"한국어": "가장<br/>좋아하는"
},
"Team": {
"English": "Team",
"Español": "Equipo",
@ -797,14 +871,14 @@ var translatable = {
},
"Legend": {
"English": "Legend",
"Español": "Legendario",
"Español": "Legend",
"Português": "Lendário",
"Deutsch": "Legend",
"日本": "伝説",
"简中": "传说的",
"繁中": "傳說的",
"Français": "Légendaire",
"Italiano": "Leggendari",
"Français": "Légend",
"Italiano": "Leggend",
"한국어": " 전설의"
}
}

View File

@ -1,8 +1,8 @@
{
"Gimmick Form": "",
"Eeveelution": "ブイズ",
"Box Legendary": "パケ伝",
"Pseudo Legend": "600族",
"Gimmick Form": "",
"Download Image": "",
"Alternate download link": "",
"Export Choices": "",
@ -10,8 +10,8 @@
"Reset the grid!": "",
"Are you sure you want to reset the grid?": "",
"Don't like my choices? You can overrule them here!": "",
"Write Code will put a text version of the grid here": "",
"Then you can edit the names and Import Code to replace the images.": "",
"Export Choices will put a text version of the grid here": "",
"Then you can edit the names and Import Choices to replace the images.": "",
"Most Pokemon are just their named capitalized, like SWELLOW.": "",
"Alternate forms have specific tags, like MEOWTH_2 for Galarian Meowth.": "",
"You can also use this to keep backups": "",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -32,17 +32,17 @@
for(var i=0; i<pairs.length; i++) {
output += `#<section `
if(i < pairs.length-1) {
output += `begin="${pairs[i+1][0]}p${tag}"`
output += `begin="${pairs[i+1][0]}p${tag}" `
}
if(i > 0) {
output += `begin="${pairs[i-1][0]}n${tag}"`
output += `begin="${pairs[i-1][0]}n${tag}" `
}
output += `/>[[${pairs[i][1]}]]<section `
if(i < pairs.length-1) {
output += `end="${pairs[i+1][0]}p${tag}"`
output += `end="${pairs[i+1][0]}p${tag}" `
}
if(i > 0) {
output += `end="${pairs[i-1][0]}n${tag}"`
output += `end="${pairs[i-1][0]}n${tag}" `
}
output += `/>\n`;
if(pairs[i][2]) {