mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 23:56:25 +02:00
Removes the tag from the autotranslation index to avoid translating the name itself.
This commit is contained in:
@@ -77,4 +77,13 @@ class TranslationsTest {
|
|||||||
"pt"
|
"pt"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun testNostrEvents() {
|
||||||
|
assertTranslateContains(
|
||||||
|
"nostr:nevent1qqs0tsw8hjacs4fppgdg7f5yhgwwfkyua4xcs3re9wwkpkk2qeu6mhql22rcy",
|
||||||
|
"sure, nostr:nevent1qqs0tsw8hjacs4fppgdg7f5yhgwwfkyua4xcs3re9wwkpkk2qeu6mhql22rcy",
|
||||||
|
"en"
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -102,7 +102,7 @@ object LanguageTranslatorService {
|
|||||||
while (matcher.find()) {
|
while (matcher.find()) {
|
||||||
try {
|
try {
|
||||||
val tag = matcher.group()
|
val tag = matcher.group()
|
||||||
val short = "Amethysttagindexer$counter"
|
val short = "Amethystmindexer$counter"
|
||||||
returningList.put(short, tag)
|
returningList.put(short, tag)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user