Zren/plasma-applet-eventcalendar

Translation Updates

Opened this issue · 16 comments

Zren commented

Subscribe to this issues to receive updates of new phrases to translate.

https://github.com/Zren/plasma-applet-eventcalendar/commits/master/package/translate/template.pot

Zren commented

ff29932#diff-ba542b403c242b55ccd34ed227f3def0

Added Keys:
"Event description"
"Google Hangouts link"
"Hangout"

Zren commented

819df1d

Added Keys:
"Edit title"
"Event Description"
"Event Title"

Removed Keys:
"Event Summary"

Zren commented

I will probably be adding a few more error messages related to calendar events as well.

5001637

Added Keys:
"Error fetching weather."
"Weather API limit reached, will try again soon."

Zren commented

2884b15

Changed Keys:
"Save" => "&Save"
"Start" => "&Start"
"Cancel" => "&Cancel"

Added Keys:
"Add description"
"Add location"
"Copy Link"
"event editor date format" "d MMM, yyyy"
"Edit"

Removed Keys:
"Discard"
"Edit date/time"

Zren commented

b2a73f9

Changed Keys:
"1h" => "%1h"
"1m", "5m", "10m", "15m", "20m", "30m", "45m" => "%1m"
"30s" => "%1s"

Removed Keys:
"Edit description"
"Edit title"
"Event Description"

Please note that I extrapolated the new messages from the old ones so there's nothing to translate.
824a970

Zren commented

e127a0f

Added Keys:
"Day Spacing:"
"Event Spacing:"
"Hide 'All Day' text"

Zren commented

v69 dev had a fair share of new messages.

a719a4e

Added Keys:
"Agenda below the Calendar (Single Column)"
"Calendar to the left of the Agenda (Two Columns)"
"Highlight Current Day / Week"
"Layout"
"Time Format Documentation"

Removed Keys:
"Agenda above the month (Single Column)"
"Agenda to the left (Two Columns)"

a708b6a

Added Keys:
"All files (%1)"
"Sound files (%1)"

Removed Keys:
"Choose"

Note: 1 of the 2 "Default" messages was given the context "Use default font". I manually copied the previous "Default" translation that also covered the "first day of week" use case to the default font translation.

16eb4ab

Added Keys:
"Could not connect (HTTP Error 0), will try again soon."
"Plasmoid for a calendar+agenda with weather that syncs to Google Calendar."
"Tasks"

da, el, fr, ja, ru, tr, uk now have the widget name translated in the "Add Widgets" view. Though I just realized pt lost it's translation in metadata.desktop as we only have pt_BR.po.

Zren commented

7d79074

Added Keys:
"Add due date"

6afe2a0

Added Keys:
"Debugging will log sensitive information to:"
"Enable Debugging"

Removed Keys:
"Enable Debugging\nThis will log sensitive information to ~/.xsession-errors"

I copied most translations to the new messages, however a few had
words after the ~/.xession-errors "word" so I didn't fix ja, tr, zh.

Zren commented

I released v71 without notifying everyone as I needed to fix GoogleCalendar sync asap. I plan to ship a v72 with updated translations + any bugfixes for v71 since it refactored a fair bit of code.

Added:
"New Google Calendar Event (Web Browser)"
"Do Nothing"

Changed:
"DoubleClick Date:" => "Double-click on Date:"

Changed:
"min" no longer uses i18np() and assumes singular == plural since it's basically a short form of "minutes". No existed locales seem to have a difference which is why I made this decision.

Also fixed the singular of "hours" to "hour".

Added Keys:
"Could not connect"
"Current Month Title:"
"HTTP Error %1: %2"
"Logged out of Google. Please login again."
"Too many web requests. Will try again soon."
"Weather API limit reached"
"Widget has been updated. Please logout and login to Google Calendar again."
"Will try again soon."

Removed Keys:
"Could not connect (HTTP Error 0), will try again soon."
"Weather API limit reached, will try again soon."

Changed:
Fixed a typo "... acess ..." => "... access ...".

Zren commented

The Event Reminder added a few new keys. I reused the compact %1h %1m and %1s messages from the timer labels for the "Starting in" notification.

40736c6

Added Keys:
"Event Reminder"
"Starting in %1"

Started translating into Hebrew.

P.S. What does "Show next" (string #‎75) mean?

Zren commented
#: ../contents/ui/config/ConfigWeather.qml
msgid "Show next "

#: ../contents/ui/config/ConfigWeather.qml
msgid " in the meteogram."

It's the "Show next " [x hours] " in the meteogram" spinbox in the Weather config tab.

#: ../contents/ui/config/ConfigWeather.qml
msgid "Show next "

#: ../contents/ui/config/ConfigWeather.qml
msgid " in the meteogram."

It's the "Show next " [x hours] " in the meteogram" spinbox in the Weather config tab.

If so, there is a syntactic problem. In Hebrew and other Semitic languages, we say the adjective after the noun.

Zren commented

I should probably refactor it to be like this, but for now just treat both messages as one.

RowLayout {
	readonly property string message: i18n("Show next %1 in the meteogram")
	Text {
		id: prefix
		text: parent.message.split("%1")[0]
	}
	SpinBox {}
	Text {
		id: suffix
		text: parent.message.split("%1")[1]
	}
}

Thank you. Now opened PR #305

Zren commented

8af356f

Added Keys:
"Event Click:"
"Hide "This event was added from Goals in Google Calendar" description"
"Open Web Event View"
"Open Web Month View"
"Options"

45d9736

I've also parsed and reused all the translations in /usr/share/locale/kf5/ (OpenSUSE only path?) by using this work in progress script to create "compendiums" that xgettext can lookup.

"Edit"
"Options"
"Id"
"Timer"
"Data"
"Left"
"Right"
"First day of week:"
"&Cancel"
"to"