Skip to content

Commit

Permalink
Merge pull request #332 from oae/fix_locale_gen
Browse files Browse the repository at this point in the history
Fix #331
  • Loading branch information
Totto16 authored Dec 31, 2024
2 parents d0d71f8 + e740e02 commit 49cd32f
Show file tree
Hide file tree
Showing 36 changed files with 1,442 additions and 1,521 deletions.
69 changes: 35 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,55 +34,56 @@
}
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@girs/adw-1": "1.6.0-4.0.0-beta.16",
"@girs/clutter-15": "15.0.0-4.0.0-beta.16",
"@girs/gda-5.0": "5.0.0-4.0.0-beta.16",
"@girs/gda-6.0": "6.0.0-4.0.0-beta.16",
"@girs/gdk-4.0": "4.0.0-4.0.0-beta.16",
"@girs/gdkpixbuf-2.0": "2.0.0-4.0.0-beta.16",
"@girs/gio-2.0": "2.82.0-4.0.0-beta.16",
"@girs/glib-2.0": "2.82.0-4.0.0-beta.16",
"@girs/gnome-shell": "47.0.0-next.4",
"@girs/gobject-2.0": "2.82.0-4.0.0-beta.16",
"@girs/graphene-1.0": "1.0.0-4.0.0-beta.16",
"@girs/gsound-1.0": "1.0.0-4.0.0-beta.16",
"@girs/gtk-4.0": "4.15.5-4.0.0-beta.16",
"@girs/meta-15": "15.0.0-4.0.0-beta.16",
"@girs/pango-1.0": "1.54.0-4.0.0-beta.16",
"@girs/shell-15": "15.0.0-4.0.0-beta.16",
"@girs/soup-3.0": "3.6.0-4.0.0-beta.16",
"@girs/st-15": "15.0.0-4.0.0-beta.16",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@girs/adw-1": "1.7.0-4.0.0-beta.19",
"@girs/clutter-15": "15.0.0-4.0.0-beta.19",
"@girs/gda-5.0": "5.0.0-4.0.0-beta.19",
"@girs/gda-6.0": "6.0.0-4.0.0-beta.19",
"@girs/gdk-4.0": "4.0.0-4.0.0-beta.19",
"@girs/gdkpixbuf-2.0": "2.0.0-4.0.0-beta.19",
"@girs/gio-2.0": "2.82.2-4.0.0-beta.19",
"@girs/glib-2.0": "2.82.2-4.0.0-beta.19",
"@girs/gnome-shell": "47.0.0",
"@girs/gobject-2.0": "2.82.2-4.0.0-beta.19",
"@girs/graphene-1.0": "1.0.0-4.0.0-beta.19",
"@girs/gsound-1.0": "1.0.0-4.0.0-beta.19",
"@girs/gtk-4.0": "4.16.3-4.0.0-beta.19",
"@girs/meta-15": "15.0.0-4.0.0-beta.19",
"@girs/pango-1.0": "1.54.0-4.0.0-beta.19",
"@girs/shell-15": "15.0.0-4.0.0-beta.19",
"@girs/soup-3.0": "3.6.0-4.0.0-beta.19",
"@girs/st-15": "15.0.0-4.0.0-beta.19",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-node-resolve": "^15.3.1",
"@rollup/plugin-typescript": "^11.1.6",
"@tsconfig/strictest": "^2.0.5",
"@types/events": "^3.0.3",
"@types/gettext-parser": "^4.0.4",
"@types/highlight.js": "^10.1.0",
"@types/is-url": "^1.2.32",
"@types/jasmine": "^5.1.4",
"@types/prismjs": "^1.26.4",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"@types/jasmine": "^5.1.5",
"@types/prismjs": "^1.26.5",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-simple-import-sort": "^12.1.0",
"fill-pot-po": "^3.0.4",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"fill-pot-po": "^3.0.5",
"gettext-extractor": "^3.8.0",
"gettext-parser": "^7.0.1",
"glob": "^10.4.1",
"husky": "^9.0.11",
"prettier": "^3.3.0",
"rollup": "^4.18.0",
"glob": "^10.4.5",
"husky": "^9.1.7",
"prettier": "^3.4.2",
"rollup": "^4.29.1",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-styles": "^4.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
"typescript": "^5.7.2",
"chalk": "4.1.2"
},
"dependencies": {
"date-fns": "^2.30.0",
Expand Down
2 changes: 1 addition & 1 deletion resources/po/ar.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/bg.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/cs.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/da.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/de.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/el.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/en.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/es.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/et.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/fi.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/fr.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/he.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/hr.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/hu.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/is.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/it.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/ja.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/ko.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/nl.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/no.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/oc.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/pl.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/pt.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/pt_BR.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/ro.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/ru.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/sk.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/sv.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/tr.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/uk.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/vi.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/zh_CN.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion resources/po/zh_TW.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: fill-pot-po/3.0.4\n"
"X-Generator: fill-pot-po/3.0.5\n"

#: src/components/indicator/clearHistoryDialog.ts:23
msgid "Cancel"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class Database {
const matchValue = iter.get_value_for_field('matchValue');
const matchValueUnescaped = unescape_string(matchValue) ?? matchValue;
const searchValue = iter.get_value_for_field('searchValue');
const searchValueUnescaped = searchValue ? unescape_string(searchValue) ?? searchValue : undefined;
const searchValueUnescaped = searchValue ? (unescape_string(searchValue) ?? searchValue) : undefined;
const metaData = iter.get_value_for_field('metaData');

itemList.push({
Expand Down
Loading

0 comments on commit 49cd32f

Please sign in to comment.