Skip to content

Add support for PO translations #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added po/LINGUAS
Empty file.
5 changes: 5 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
src/main/lobjur/main.cljs
src/main/lobjur/widgets/comments.cljs
src/main/lobjur/widgets/stories_list_view.cljs
src/main/lobjur/widgets/user
src/main/rollui/core.cljs
16 changes: 16 additions & 0 deletions po/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Translating
## Using POEdit
To create a new translation of Lobjur you can use POEdit:
- Install POEdit from a Flatpak: `flatpak install flathub net.poedit.Poedit`; otherwise use your distribution's repositories;
- Open POEdit and select `Create new translation from POT file`;
- In the file selection dialog, select the `com.ranfdev.Lobjur.pot` file in the repository's `po` directory;
- Once you have finished translating, open a pull request from your forked repository to the source repository on the `develop` branch.

---

## Updating the source
Whenever you add or update a translation, update the source translation from source code changes with this command in the project's root directory:

`xgettext --from-code=UTF-8 --add-comments --keyword=_ --keyword=C_:1c,2 --output=po/com.ranfdev.Lobjur.pot -f po/POTFILES`

Thank you for translating.
70 changes: 70 additions & 0 deletions po/com.ranfdev.Lobjur.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-16 10:55-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/main/lobjur/main.cljs:59
msgid "Comments"
msgstr ""

#: src/main/lobjur/main.cljs:126
msgid "Command line arguments are: "
msgstr ""

#: src/main/lobjur/widgets/comments.cljs:121
msgid "No comments available"
msgstr ""

#: src/main/lobjur/widgets/stories_list_view.cljs:109
msgid "No Stories Available"
msgstr ""

#: src/main/lobjur/widgets/stories_list_view.cljs:117
msgid "Previous"
msgstr ""

#: src/main/lobjur/widgets/stories_list_view.cljs:127
msgid "Next"
msgstr ""

#: src/main/lobjur/widgets/stories_list_view.cljs:134
msgid "Hottest"
msgstr ""

#: src/main/lobjur/widgets/stories_list_view.cljs:137
msgid "Active"
msgstr ""

#: src/main/lobjur/widgets/user.cljs:65
msgid "Karma: "
msgstr ""

#: src/main/lobjur/widgets/user.cljs:69
msgid "Newest Stories"
msgstr ""

#: src/main/rollui/core.cljs:25
msgid "Error in promise, in update-prop-many"
msgstr ""

#: src/main/rollui/core.cljs:37
msgid "Can't build widget with constructor"
msgstr ""

#: src/main/rollui/core.cljs:38
msgid "The constructor arguments were"
msgstr ""