PascalPrecht/angular-translate — pull request #262 by DWand (2013-12-18 16:51:36+00:00)
Title: Add predefined namespace for storing language-specific information

Here is a little proposal which, probably, could be useful to solve #227 and to provide new features in the future.

This PR adds a functionality to provide a predefined namespace which could be used to store a language-specific information. For example, the direction of the text in the language, or it's plural rules, or something else.

The user can use the default name for this namespace or change it to his/her own if it's necessary.

Actually, there is nothing new. The user is able to store such info in the translation table without these functions. So, this is just like a shortcut, angular-translate-way. This also can be used to let the angular-translate know which namespace is used by the user to store language-specific information. So, we, probably, can use such information in some modules.

Advantages:
* unlike extending a translations() method of the provider, this solution allows the users to add language-specific information also in the json-files loaded from the server
* this method allows us to keep translation tables as a simple hash maps without extending them to more complex structures

Example for handling ltr/rtl languages:
```js
$translateProvider.translations('foo', {
'___' : {
'dir' : 'ltr'
}, ...
});
$translateProvider.translations('bar', {
'___' : {
'dir' : 'rtl'
}, ...
});
// ___ is a default name for predefined language-specific namespace
// some code
var dir = $translate.getLangInfo('dir');
if (dir === 'rtl') {
// do something
} else {
// do something else
}
```