Skip to content

Commit

Permalink
feat(i18n): add Norwegian Bokmål translations and set up translation …
Browse files Browse the repository at this point in the history
…infrastructure (#1)
  • Loading branch information
bragefuglseth authored Mar 7, 2024
1 parent 9189da0 commit 458aeac
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 4 deletions.
1 change: 1 addition & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
de
nb
8 changes: 4 additions & 4 deletions po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Hieroglyphic\n"
"Report-Msgid-Bugs-To: https://github.com/FineFindus/Hieroglyphic\n"
"POT-Creation-Date: 2024-03-05 13:34+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-06 22:52+0100\n"
"PO-Revision-Date: 2024-03-05 15:19+0100\n"
"Last-Translator: FineFindus <FineFindus@proton.me>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -44,8 +44,8 @@ msgid ""
"LaTeX symbols by sketching."
msgstr ""
"LaTeX-Nutzer wissen, wie herausfordernd es sein kann, sich die Namen aller "
"Symbole zu merken. Mit Hieroglyphic ist es möglich in über 1000 "
"verschiedene LaTeX-Symbole durch Skizzieren suchen."
"Symbole zu merken. Mit Hieroglyphic ist es möglich in über 1000 verschiedene "
"LaTeX-Symbole durch Skizzieren suchen."

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:25
msgid "Main Window"
Expand Down
73 changes: 73 additions & 0 deletions po/hieroglyphic.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the hieroglyphic package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: hieroglyphic\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-06 22:53+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"

#: data/io.github.finefindus.Hieroglyphic.desktop.in.in:3
#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:8
#: src/about_window.rs:33 src/main.rs:23
msgid "Hieroglyphic"
msgstr ""

#: data/io.github.finefindus.Hieroglyphic.desktop.in.in:4
msgid "Search through over 1000 different LaTeX symbols by sketching"
msgstr ""

#. Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
#: data/io.github.finefindus.Hieroglyphic.desktop.in.in:10
msgid "GTK;Tools;LaTeX;TeX;Symbols;"
msgstr ""

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:9
msgid "Find LaTeX symbols"
msgstr ""

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:19
msgid ""
"If you work with LaTeX, you know its difficult to memorize the names of all "
"the symbols. Hieroglyphic allows you to search through over 1000 different "
"LaTeX symbols by sketching."
msgstr ""

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:25
msgid "Main Window"
msgstr ""

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:29
msgid "Main Window (Adwaita-Dark)"
msgstr ""

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:45
msgid "Initial release"
msgstr ""

#: data/resources/ui/window.ui:28
msgid "About"
msgstr ""

#: data/resources/ui/window.ui:85
msgid "_Clear"
msgstr ""

#. Translators: This should not be translate, Please enter your credits here instead (format: "Name https://example.com" or "Name <email@example.com>", no quotes)
#: src/about_window.rs:39
msgid "translator-credits"
msgstr ""

#: src/window.rs:315
msgid "Copied “{}”"
msgstr ""
78 changes: 78 additions & 0 deletions po/nb.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the hieroglyphic package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: hieroglyphic\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-06 22:53+0100\n"
"PO-Revision-Date: 2024-03-06 23:10+0100\n"
"Last-Translator: Brage <bragefuglseth@gnome.org>\n"
"Language-Team: \n"
"Language: nb\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"

#: data/io.github.finefindus.Hieroglyphic.desktop.in.in:3
#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:8
#: src/about_window.rs:33 src/main.rs:23
msgid "Hieroglyphic"
msgstr "Hieroglyphic"

#: data/io.github.finefindus.Hieroglyphic.desktop.in.in:4
msgid "Search through over 1000 different LaTeX symbols by sketching"
msgstr "Finn riktig spesialtegn"

#. Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
#: data/io.github.finefindus.Hieroglyphic.desktop.in.in:10
msgid "GTK;Tools;LaTeX;TeX;Symbols;"
msgstr "LaTeX;tegn;spesialtegn;symbol;sett inn;innsetting;TeX;"

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:9
msgid "Find LaTeX symbols"
msgstr "Finn riktig spesialtegn"

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:19
msgid ""
"If you work with LaTeX, you know its difficult to memorize the names of all "
"the symbols. Hieroglyphic allows you to search through over 1000 different "
"LaTeX symbols by sketching."
msgstr ""
"Hieroglyphic lar deg jobbe med LaTeX uten å måtte pugge en endeløs rekke "
"med navn. Bare strek opp tegnet du trenger på skjermen, og la Hieroglyphic "
"søke etter det i en imponerende samling på over 1000 forskjellige "
"spesialtegn."

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:25
msgid "Main Window"
msgstr "Hovedvindu"

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:29
msgid "Main Window (Adwaita-Dark)"
msgstr "Hovedvindu i mørk modus"

#: data/io.github.finefindus.Hieroglyphic.metainfo.xml.in.in:45
msgid "Initial release"
msgstr "Første utgivelse"

#: data/resources/ui/window.ui:28
msgid "About"
msgstr "Om Hieroglyphic"

#: data/resources/ui/window.ui:85
msgid "_Clear"
msgstr "_Tøm"

#. Translators: This should not be translate, Please enter your credits here instead (format: "Name https://example.com" or "Name <email@example.com>", no quotes)
#: src/about_window.rs:39
msgid "translator-credits"
msgstr "Brage Fuglseth https://bragefuglseth.dev"

#: src/window.rs:315
msgid "Copied “{}”"
msgstr "«{}» kopiert til utklippstavlen"
12 changes: 12 additions & 0 deletions update-translations.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

BUILD_DIR="translation-build/"
if [ -d "$BUILD_DIR" ]; then
rm -r translation-build
fi

meson translation-build
meson compile -C translation-build hieroglyphic-pot
meson compile -C translation-build hieroglyphic-update-po

rm -r translation-build

0 comments on commit 458aeac

Please sign in to comment.