#112 [pl][flags] tłumaczenia flag - fix gays

This commit is contained in:
Avris 2020-12-10 17:47:48 +01:00
parent ddcdcfb6f3
commit a54914eae5
5 changed files with 8 additions and 3 deletions

View File

@ -957,7 +957,7 @@ flags:
Bear: 'Misiek'
Bigender: 'Bipłciow{adjective_n}' # Dwupłciow{adjective_n}
Bisexual: 'Biseksualn{adjective_n}'
Butch: 'Butch, Bacz'
Butch: 'Butch'
Ceterosexual: 'Ceteroseksualn{adjective_n}'
Cis_Ally: 'Cis osoba sojusznicza'
Demiboy: 'Demichłopię' # Demichłopak
@ -967,6 +967,7 @@ flags:
Demisexual: 'Demiseksualn{adjective_n}'
Diamoric: 'Diamoryczn{adjective_n}'
Enbian: 'Enbiańsk{adjective_n_alt}' # Niebiańsk{adjective_n}
Gay: 'Gej'
Gender_questioning: 'Kwestionując{adjective_n} swoją płeć' # Zastanawiając{adjective_n} się nad swoją płcią
Genderfae: 'Nimficzn{adjective_n}'
Genderfaun: 'Fauniczn{adjective_n}'

View File

@ -43,7 +43,7 @@
<section v-if="profile.flags.length">
<ul class="list-inline">
<li v-for="flag in profile.flags" class="list-inline-item pr-2">
<Flag :name="$translateForPronoun(allFlags[flag], mainPronoun)" :alt="allFlags[flag]" :img="`/flags/${flag}.png`"/>
<Flag :name="flag.startsWith('-') ? allFlags[flag] : $translateForPronoun(allFlags[flag], mainPronoun)" :alt="allFlags[flag]" :img="`/flags/${flag}.png`"/>
</li>
</ul>
</section>

View File

@ -227,7 +227,11 @@
const flags = buildList(function*() {
for (let key in process.env.FLAGS) {
if (!process.env.FLAGS.hasOwnProperty(key)) { continue; }
yield [key, that.$translateForPronoun(process.env.FLAGS[key], that.mainPronoun) + '|' + process.env.FLAGS[key]];
yield [
key,
(key.startsWith('-') ? process.env.FLAGS[key] : that.$translateForPronoun(process.env.FLAGS[key], that.mainPronoun))
+ '|' + process.env.FLAGS[key]
];
}
});

BIN
static/flags/-pl-Gay.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB