Ticket #5487 (assigned task)
Opened 5 years ago
Last modified 21 months ago
Translation of Trac to Swedish/Svenska [sv]
| Reported by: | asmodai@… | Owned by: | mrelbe |
|---|---|---|---|
| Priority: | normal | Milestone: | translations |
| Component: | i18n | Version: | |
| Severity: | normal | Keywords: | l10n swedish |
| Cc: | mikko@…, mikael@…, fatbrain@… | ||
| Release Notes: | |||
| API Changes: | |||
Description (last modified by jruigrok) (diff)
This ticket should be used to coordinate the translation to Swedish/Svenska?. See also TracTermsSv and source:trunk/trac/locale/sv_SE/LC_MESSAGES/messages.po
Attachments
Change History
comment:1 Changed 5 years ago by jruigrok
- Milestone changed from not applicable to 0.12
- Owner changed from jonas to jruigrok
comment:2 Changed 4 years ago by jruigrok
- Status changed from new to assigned
comment:3 Changed 4 years ago by jruigrok
- Component changed from general to i18n
comment:4 Changed 4 years ago by cboos
- Milestone changed from 0.13 to 0.12
comment:5 Changed 3 years ago by jruigrok
- Description modified (diff)
comment:6 Changed 3 years ago by mikko@…
All strings should now be translated.
comment:8 Changed 3 years ago by jruigrok
Committed in r7749. Tack!
comment:9 Changed 3 years ago by jruigrok
Need to poke Jonas about updating this. Unless some other Swede wants to step in and update the current files.
comment:10 Changed 2 years ago by wise@…
I made a diff with some new translation
Changed 2 years ago by wise@…
- Attachment sv_SE_messages.po.diff added
Did some translation on empty strings
Changed 2 years ago by wise@…
- Attachment messages.2.po added
Changed 2 years ago by wise@…
- Attachment sv_SE_messages.po_v2.diff added
new diff used babel 0.9.4 this time
comment:11 Changed 2 years ago by jruigrok
- Owner jruigrok deleted
- Status changed from assigned to new
comment:12 Changed 2 years ago by cboos
- Milestone changed from 0.12 to translations
sv_SE renamed to sv in r9141
About messages.2.po:
$ msgfmt --check messages.2.po messages.2.po:3110: missing `msgstr' section messages.2.po:3111: missing `msgstr' section msgfmt: found 2 fatal errors
Fixing it, then:
messages.2.po:383: `msgid' and `msgstr' entries do not both begin with '\n' messages.2.po:425: `msgid' and `msgstr' entries do not both begin with '\n' messages.2.po:2874: 'msgstr[0]' is not a valid Python format string, unlike 'msgid'. Reason: In the directive number 1, the character 't' is not a valid conversion specifier. msgfmt: found 4 fatal errors
Fixing those as well.
Finally:
$ PYTHONPATH=. python setup.py compile_catalog -l sv -f running compile_catalog 4618 error: trac/locale\sv\LC_MESSAGES\messages.po:1132: unknown named placeholder u'error' error: trac/locale\sv\LC_MESSAGES\messages.po:2287: unknown named placeholder u'num' error: trac/locale\sv\LC_MESSAGES\messages.po:2680: unknown named placeholder u'summary' error: trac/locale\sv\LC_MESSAGES\messages.po:4171: unknown named placeholder u'page'
All from fuzzy translations so I "fixed" those but of course kept the fuzzy tag, as the translation itself is likely non-sensical.
Committed as r9142.
Changed 22 months ago by mrelbe <mikael@…>
- Attachment messages.3.po added
For Trac 0.12dev-r9466, Babel 0.9.5, no fuzzy translations
comment:13 Changed 22 months ago by mrelbe <mikael@…>
- Cc mikael@… added
messages.3.po is made for Trac 012.dev-r9466, using Babel 0.9.5, and is a serious attempt in getting the Swedish translation done (no fuzzy translations left). I added the whole file since the diff became totally unreadable :)
During this work, I discovered some "flaws" in the pre-defined messages in Trac, in that some combinations cannot be perfectly translated to Swedish. (Example: admin panel defines message string for "Manage Milestones" etc. but not "Manage Priorities". Therefore, the Swedish translation has some capital letter flaws though correct wording.)
Perhaps I may get back to help extending Trac :) (Still have to study some more Ptyhon, though.)
comment:14 Changed 22 months ago by mrelbe <mikael@…>
cboos: Is a diff-file preferable, or is it okay to attach a complete replacement file like I did above?
I really want this to be committed to Trac trunk, it seems that diff-files becomes committed quicker by you maintainers since they are easier to handle when updating source code -- very understandable, and I am thinking that I may have submitted the changes in an inappropriate format here.
Please let me know and I will redo the update if you find it necessary.
comment:15 follow-up: ↓ 16 Changed 22 months ago by cboos
It's OK, I've no problem with full files when the diff would anyway be of comparable size.
The other interested contributors for your language can then look at the commit itself for checking changes and discussing further improvements, if needed.
One issue though:
#: trac/versioncontrol/api.py:350 #, python-format msgid "Changeset %(rev)s in %(repo)s" msgstr "Ändring %(rev)s saknas i förrådet"
i.e. missing %(repo)s in msgstr. Running msgfmt -c .../messages.po helps ;-)
(ignore the other errors a format specification for argument 'unit', as in 'msgstr[0]' which I should really fix before advertising the use of msgfmt -c further...)
comment:16 in reply to: ↑ 15 Changed 22 months ago by mrelbe <mikael@…>
Replying to cboos:
One issue though:
Oh... sorry, thanks for finding this. I'll get back tonight (after work hours) with another update (after using msgfmt).
Please await updating trunk for next update.
Changed 22 months ago by mrelbe <mikael@…>
- Attachment messages.4.po added
100% complete for Trac 0.12dev-r9466
comment:17 follow-up: ↓ 20 Changed 22 months ago by mrelbe <mikael@…>
- Summary changed from Translation of Trac to Swedish/Svenska [sv_SE] to Translation of Trac to Swedish/Svenska [sv]
cboos: messages.4.po should be mature for trunk.
comment:18 Changed 22 months ago by mrelbe <mikael@…>
Swedish translations may now be contributed through transifex.net
comment:19 Changed 22 months ago by mrelbe <mikael@…>
- Owner set to mrelbe <mikael@…>
comment:20 in reply to: ↑ 17 Changed 22 months ago by mrelbe <mikael@…>
messages.4.po committed in [9471] by cboos. Many thanks!
comment:21 Changed 22 months ago by mrelbe <mikael@…>
With reference to ticket:9040#comment:8, I understand it is possible to be granted commit (write) permissions of language files.
In the same spirit, would it be possible to grant me write permissions for trunk/trac/locale/sv?
comment:22 Changed 22 months ago by cboos
- Cc fatbrain@… added
Hello Mikael. Yes, this would be OK for me, the translations you contributed so far looked fine.
The other Swedish speaking people interested in contributing translations are of course still encouraged to continue to do so, by sending suggestions and patches on this ticket. Changes committed by Mikael can be monitored via the RSS feed you'll find on log:trunk/trac/locale/sv.
comment:23 Changed 22 months ago by mrelbe
- Owner changed from mrelbe <mikael@…> to mrelbe
comment:24 Changed 21 months ago by mrelbe
- Status changed from new to assigned



Please see current work at source:sandbox/i18n/trac/locale/sv_SE/LC_MESSAGES/messages.po