/usr/lib/python2.6/site-packages/oslo_i18n
NameSizeModeActions
locale/-0755rm
tests/-0755rm
fixture.py56740644editdlrm
fixture.pyc73980644editdlrm
log.py35420644editdlrm
log.pyc28730644editdlrm
_factory.py70460644editdlrm
_factory.pyc72930644editdlrm
_gettextutils.py29800644editdlrm
_gettextutils.pyc27820644editdlrm
_i18n.py9340644editdlrm
_i18n.pyc3690644editdlrm
_lazy.py12660644editdlrm
_lazy.pyc8570644editdlrm
_locale.py9350644editdlrm
_locale.pyc5580644editdlrm
_message.py92600644editdlrm
_message.pyc67620644editdlrm
_translate.py28710644editdlrm
_translate.pyc25540644editdlrm
__init__.py6730644editdlrm
__init__.pyc2580644editdlrm
Edit: /usr/lib/python2.6/site-packages/oslo_i18n/_locale.py (935B)
# Copyright 2012 Red Hat, Inc. # Copyright 2013 IBM Corp. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. def get_locale_dir_variable_name(domain): """Build environment variable name for local dir. Convert a translation domain name to a variable for specifying a separate locale dir. """ return domain.upper().replace('.', '_').replace('-', '_') + '_LOCALEDIR'