Announcing apostrophe-localization

45 views
Skip to first unread message

Tom Boutell

unread,
Jul 14, 2015, 11:06:17 AM7/14/15
to apostr...@googlegroups.com
Apostrophe now has a module for localization and internationalization of your site's content:


This module provides a locale picker and automatically swaps out different localized versions of all areas and singletons, as well as titles, without imposing any overhead on sites that are not interested in localization.

You can specify that some areas and singletons are "universal" (such as a photo slideshow with no accompanying text), and you can also specify that some properties that are not areas should also be localized (such as a summary textarea).

This code is quite new but will see its first production use soon on an internal project.

Currently the localization module does not support localizing URLs. This is something we're interested in doing, however the project that's funding this work right now does not require it, and there's considerable complexity there. So it will have to wait, unless someone wishes to contribute a solution.

Enjoy!

--


THOMAS BOUTELL, DEV & OPS
P'UNK AVENUE | (215) 755-1330  |  punkave.com

Kris Wolff

unread,
Jul 14, 2015, 6:33:31 PM7/14/15
to apostr...@googlegroups.com
+1

One Question, you are using getUrl in 
var currentUrl = self._apos._aposLocals.getUrl();

getUrl is not in my _aposLocals. Is it some version problem i can fix with a update? where does getUrl comes from? 

Thanks a lot, 
Kris


--
You received this message because you are subscribed to the Google Groups "apostrophenow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apostropheno...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc

Kris Wolff

unread,
Jul 14, 2015, 7:02:19 PM7/14/15
to apostr...@googlegroups.com
ahh update helps :-)
This is so good. Thanks a thousand times! 

how to send a beer? 
signature.asc

Tom Boutell

unread,
Jul 14, 2015, 9:11:16 PM7/14/15
to apostr...@googlegroups.com

Update the apostrophe module.

Geoff DiMasi

unread,
Jul 14, 2015, 11:13:55 PM7/14/15
to apostr...@googlegroups.com
Beers are always welcome. ;)

You can make that happen through the donate link here:


Geoff DiMasi, Principal
P'unk Avenue
215 755 1330
punkave.com

Tom Boutell

unread,
Aug 5, 2015, 5:37:33 PM8/5/15
to apostr...@googlegroups.com
A new feature:

There is now a localization report which lets you know which documents are out of date for the current locale.

For instance, if "English" is the default locale and you switch to "Spanish" and then open the localization report, you'll see a list of pages that have never been translated to Spanish or have a newer version in English.

Once you update those pages in Spanish, they no longer appear in the report until the next time an update is needed.

The documents that have gone the longest without attention appear first in the report.

To add the report, just add this code to `outerLayout.html` along with the other menus:

{{ aposLocalizationMenu(permissions) }}

Bear in mind that if you are already using this module, your existing translated documents will show up in this report until you've updated them one more time for each locale. That's because we weren't tracking the necessary metrics until now.

Enjoy!

Das Licht

unread,
Oct 23, 2015, 2:11:24 AM10/23/15
to apostrophenow
Does that also allow multilingual slugs ?

Tom Boutell

unread,
Oct 23, 2015, 8:36:48 AM10/23/15
to apostr...@googlegroups.com
No, it currently does not.

--
You received this message because you are subscribed to the Google Groups "apostrophenow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apostropheno...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages