To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #445 (new defect)

Opened 20 months ago

Last modified 13 months ago

Not all parts translatable

Reported by: oestrogen Owned by: tboutell
Priority: major Milestone: 1.5.2
Component: apostrophePlugin Version: 1.4
Keywords: i18n Cc:
Symfony version: 1.4

Description

While translating Apostrophe into Swedish I discovered some parts where missing from apostrophe.xx.xml:

Add content-button
Username, Password, Remember and Signin-button (but not cancel-button) in Login-box.
Built with Apostrophe

Also the blog and event plugins aren't included at all, but I'll create another ticket for that.

Attachments

untranslated_phrases.png Download (91.8 KB) - added by oestrogen 20 months ago.
Untranslatable parts of image library
fix_the_or-bug.diff Download (0.8 KB) - added by oestrogen 20 months ago.
Patch to fix the untranslatable "or" in aMedia.

Change History

Changed 20 months ago by oestrogen

Untranslatable parts of image library

follow-up: ↓ 8   Changed 20 months ago by oestrogen

I found som more untranslatable phrases, as can be seen in the attached picture. The untranslated words, which are pointed out in the picture, are "or" and %type%, which in this case is "image".

The original text is:

Select an Image or Cancel
Use the browsing and searching features to locate the %type% you want, then click on that %type% to select it.

  Changed 20 months ago by oestrogen

I fixed the "Sign In" button by changing:

<trans-unit id="103">

<source>sign in</source>
<target>Logga in</target>

</trans-unit>

into:

<trans-unit id="103">

<source>Sign In</source>
<target>Logga in</target>

</trans-unit>

in my apostrophe.sv.xml.
This shouldn't break anything since the lower-case phrase "sign in" isn't used anywhere according to grep. :)

  Changed 20 months ago by oestrogen

Sorry, I mean lower-case "sign in" isn't used by apostrophe, but it seems to be used by sfGuardAuth.

  Changed 20 months ago by oestrogen

The problem with %type% ("image" in the attached picture) seem to be that the entries in the xliff begin with a capital letter. Adding below snippet to apostrophe.sv.xml solved it, but it should probably be made sniffable in a i18nDummy() somewhere.

<trans-unit id="392">
 <source>image</source>
 <target>bild</target>
</trans-unit>
<trans-unit id="393">
 <source>pdf</source>
 <target>PDF</target>
</trans-unit>
<trans-unit id="394">
 <source>video</source>
 <target>video</target>
</trans-unit>

  Changed 20 months ago by oestrogen

Sorry for spamming this ticket, but I just wanted to add that I fixed the translation of the "Add Content"-button by adding:

<trans-unit id="395">
 <source>Add Content</source>
 <target>Lägg till innehåll</target>
</trans-unit>

i18n:extract seem to miss this one too, so it should probably be put in an i18nDummy() somewhere too. I would do it myself if I where more sure where to put it. :)

  Changed 20 months ago by oestrogen

This doesn't get translated either:

If you want to grant a user the ability to edit a portion of the site, first add them to the editor group.
Then browse to that area of the site and click the gear to add them to the list of users who can edit in that particular area.
If you want a user to have full control over the entire site, add them to the admin group.

  Changed 20 months ago by oestrogen

Somehow everything in the sign in form now gets translated. :D

in reply to: ↑ 1   Changed 20 months ago by oestrogen

Replying to oestrogen:

I found som more untranslatable phrases, as can be seen in the attached picture. The untranslated words, which are pointed out in the picture, are "or" and %type%, which in this case is "image".

The original text is:

Select an Image or Cancel
Use the browsing and searching features to locate the %type% you want, then click on that %type% to select it.

I have fixed the untranslateble "or" now, and will attach a patch.

Changed 20 months ago by oestrogen

Patch to fix the untranslatable "or" in aMedia.

  Changed 17 months ago by tboutell

  • owner changed from boutell to tboutell

  Changed 13 months ago by geoffd

  • milestone changed from 1.4.2 to 1.5.1
Note: See TracTickets for help on using tickets.