First steps for i18n support
* babel.cfg added; * translations initialized for all endpoints; * i18n tools cfgs added. Partially implements blueprint savanna-i18n Change-Id: I431d703c6193cc4af9324492209bda27075a78a8
This commit is contained in:
parent
ade56aca89
commit
fefaa40de4
|
@ -15,6 +15,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
import gettext
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -33,6 +34,8 @@ if os.path.exists(os.path.join(possible_topdir,
|
||||||
'__init__.py')):
|
'__init__.py')):
|
||||||
sys.path.insert(0, possible_topdir)
|
sys.path.insert(0, possible_topdir)
|
||||||
|
|
||||||
|
gettext.install('savanna', unicode=1)
|
||||||
|
|
||||||
from savanna import config
|
from savanna import config
|
||||||
from savanna.db import api as db_api
|
from savanna.db import api as db_api
|
||||||
import savanna.main as server
|
import savanna.main as server
|
||||||
|
|
|
@ -13,8 +13,12 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
import gettext
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
|
|
||||||
|
gettext.install('savanna', unicode=1)
|
||||||
|
|
||||||
from savanna.db import api as db_api
|
from savanna.db import api as db_api
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Savanna translations
|
Loading…
Reference in New Issue