Merge "Remove last vestiges of translations"

This commit is contained in:
Zuul 2025-02-11 22:54:35 +00:00 committed by Gerrit Code Review
commit 4c922fbeff
20 changed files with 2 additions and 1414 deletions

View File

@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import gettext
import warnings
__version__ = None
@ -49,14 +47,6 @@ if __version__ is None:
__canonical_version__ = _version_info.version_string()
_localedir = os.environ.get('SWIFT_LOCALEDIR')
_t = gettext.translation('swift', localedir=_localedir, fallback=True)
def gettext_(msg):
return _t.gettext(msg)
warnings.filterwarnings('ignore', module='cryptography|OpenSSL', message=(
'Python 2 is no longer supported by the Python core team. '
'Support for it is now deprecated in cryptography'))

View File

@ -1,134 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Andreas Jaeger <jaegerandi@gmail.com>, 2014
# Ettore Atalan <atalanttore@googlemail.com>, 2014-2015
# Jonas John <jonas.john@e-werkzeug.eu>, 2015
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
# Andreas Jaeger <jaegerandi@gmail.com>, 2019. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2019-10-03 06:41+0000\n"
"Last-Translator: Andreas Jaeger <jaegerandi@gmail.com>\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: German\n"
#, python-format
msgid "Bad key for %(name)r: %(err)s"
msgstr "Schlechter Schlüssel für %(name)r: %(err)s"
#, python-format
msgid "Can not access the file %s."
msgstr "Kann nicht auf die Datei %s zugreifen."
#, python-format
msgid "Can not load profile data from %s."
msgstr "Die Profildaten von %s können nicht geladen werden."
#, python-format
msgid "Data download error: %s"
msgstr "Fehler beim Downloaden von Daten: %s"
#, python-format
msgid "Error decrypting %(resp_type)s: %(reason)s"
msgstr "Fehler beim Entschlüsseln %(resp_type)s: %(reason)s"
#, python-format
msgid "Error decrypting %(resp_type)s: Missing %(key)s"
msgstr "Fehler beim Entschlüsseln %(resp_type)s: Es fehlt %(key)s"
#, python-format
msgid "Error decrypting header %(header)s: %(error)s"
msgstr "Fehler beim Entschlüsseln des header %(header)s: %(error)s"
#, python-format
msgid "Error decrypting object: %s"
msgstr "Fehler beim Entschlüsseln object: %s"
msgid "Error listing devices"
msgstr "Fehler beim Auflisten der Geräte"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "Fehler beim Wiedergeben der Profilerstellungsergebnisse: %s"
msgid "Error parsing recon cache file"
msgstr "Fehler beim Analysieren von recon-Zwischenspeicherdatei"
msgid "Error reading recon cache file"
msgstr "Fehler beim Lesen von recon-Zwischenspeicherdatei"
msgid "Error reading ringfile"
msgstr "Fehler beim Lesen der Ringdatei"
msgid "Error reading swift.conf"
msgstr "Fehler beim Lesen der swift.conf"
msgid "Error retrieving recon data"
msgstr "Fehler beim Abrufen der recon-Daten"
msgid "Error: An error occurred"
msgstr "Fehler: Ein Fehler ist aufgetreten"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "CNAME-Kette für %(given_domain)s bis %(found_domain)s wird gefolgt"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s zugeordnet zu %(found_domain)s"
#, python-format
msgid "Missing key for %r"
msgstr "Fehlender Schlüssel für %r"
#, python-format
msgid "Profiling Error: %s"
msgstr "Fehler bei der Profilerstellung: %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"Inaktivitätsprotokoll für Geschwindigkeitsbegrenzung: %(sleep)s für "
"%(account)s/%(container)s/%(object)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "497 wird aufgrund von Blacklisting zurückgegeben: %s"
msgid "The file type are forbidden to access!"
msgstr "Auf den Dateityp darf nicht zugegriffen werden!"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr ""
"Warnung: Geschwindigkeitsbegrenzung kann nicht ohne memcached-Client "
"durchgeführt werden"
#, python-format
msgid "method %s is not allowed."
msgstr "Methode %s ist nicht erlaubt."
msgid "no log file found"
msgstr "keine Protokolldatei gefunden"
msgid "odfpy not installed."
msgstr "odfpy ist nicht installiert."
#, python-format
msgid "plotting results failed due to %s"
msgstr ""
"Die grafische Darstellung der Ergebnisse ist fehlgeschlagen aufgrund von %s"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib ist nicht installiert."

View File

@ -1,137 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Andi Chandler <andi@gowling.com>, 2018. #zanata
# Andi Chandler <andi@gowling.com>, 2022. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2022-06-01 06:49+0000\n"
"Last-Translator: Andi Chandler <andi@gowling.com>\n"
"Language: en_GB\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: English (United Kingdom)\n"
#, python-format
msgid "Bad key for %(name)r: %(err)s"
msgstr "Bad key for %(name)r: %(err)s"
#, python-format
msgid "Can not access the file %s."
msgstr "Can not access the file %s."
#, python-format
msgid "Can not load profile data from %s."
msgstr "Can not load profile data from %s."
#, python-format
msgid "Data download error: %s"
msgstr "Data download error: %s"
msgid "Did not get a keys dict"
msgstr "Did not get a keys dict"
msgid "ERROR get_keys() missing callback"
msgstr "ERROR get_keys() missing callback"
#, python-format
msgid "Error decrypting %(resp_type)s: %(reason)s"
msgstr "Error decrypting %(resp_type)s: %(reason)s"
#, python-format
msgid "Error decrypting %(resp_type)s: Missing %(key)s"
msgstr "Error decrypting %(resp_type)s: Missing %(key)s"
#, python-format
msgid "Error decrypting header %(header)s: %(error)s"
msgstr "Error decrypting header %(header)s: %(error)s"
#, python-format
msgid "Error decrypting object: %s"
msgstr "Error decrypting object: %s"
msgid "Error listing devices"
msgstr "Error listing devices"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "Error on render profiling results: %s"
msgid "Error parsing recon cache file"
msgstr "Error parsing recon cache file"
msgid "Error reading recon cache file"
msgstr "Error reading recon cache file"
msgid "Error reading ringfile"
msgstr "Error reading ringfile"
msgid "Error reading swift.conf"
msgstr "Error reading swift.conf"
msgid "Error retrieving recon data"
msgstr "Error retrieving recon data"
msgid "Error: An error occurred"
msgstr "Error: An error occurred"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "Following CNAME chain for %(given_domain)s to %(found_domain)s"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "Mapped %(given_domain)s to %(found_domain)s"
#, python-format
msgid "Missing key for %r"
msgstr "Missing key for %r"
#, python-format
msgid "Profiling Error: %s"
msgstr "Profiling Error: %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "Returning 497 because of blacklisting: %s"
#, python-format
msgid "Returning 498 for %(meth)s to %(path)s. Ratelimit (Max Sleep) %(e)s"
msgstr "Returning 498 for %(meth)s to %(path)s. Ratelimit (Max Sleep) %(e)s"
msgid "The file type are forbidden to access!"
msgstr "The file type are forbidden to access!"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr "Warning: Cannot ratelimit without a memcached client"
#, python-format
msgid "method %s is not allowed."
msgstr "method %s is not allowed."
msgid "no log file found"
msgstr "no log file found"
msgid "odfpy not installed."
msgstr "odfpy not installed."
#, python-format
msgid "plotting results failed due to %s"
msgstr "plotting results failed due to %s"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib not installed."

View File

@ -1,120 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
# Pablo Caruana <pcaruana@redhat.com>, 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-07-18 10:20+0000\n"
"Last-Translator: Pablo Caruana <pcaruana@redhat.com>\n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: Spanish\n"
#, python-format
msgid "Bad key for %(name)r: %(err)s"
msgstr "Clave errónea para %(name)r: %(err)s"
#, python-format
msgid "Can not access the file %s."
msgstr "No se puede acceder al archivo %s."
#, python-format
msgid "Can not load profile data from %s."
msgstr "No se pueden cargar los datos de perfil desde %s."
#, python-format
msgid "Data download error: %s"
msgstr "Error de descarga de datos: %s"
msgid "Did not get a keys dict"
msgstr "No tuvimos un diccionario de claves"
msgid "ERROR get_keys() missing callback"
msgstr "ERROR get_keys() No se proporciona devolución de llamada "
msgid "Error listing devices"
msgstr "Error al mostrar los dispositivos"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "Error al representar los resultados de perfil: %s"
msgid "Error parsing recon cache file"
msgstr "Error al analizar el archivo de memoria caché de recon"
msgid "Error reading recon cache file"
msgstr "Error al leer el archivo de memoria caché de recon"
msgid "Error reading ringfile"
msgstr "Error al leer el ringfile"
msgid "Error reading swift.conf"
msgstr "Error al leer swift.conf"
msgid "Error retrieving recon data"
msgstr "Error al recuperar los datos de recon"
msgid "Error: An error occurred"
msgstr "Error: se ha producido un error"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "Siguiente cadena CNAME de %(given_domain)s a %(found_domain)s"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "Se ha correlacionado %(given_domain)s con %(found_domain)s"
#, python-format
msgid "Missing key for %r"
msgstr "Falta una clave en %r"
#, python-format
msgid "Profiling Error: %s"
msgstr "Error de perfil: %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"Ajuste de límite de registro de suspensión: %(sleep)s para %(account)s/"
"%(container)s/%(object)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "Se devuelven 497 debido a las listas negras: %s"
msgid "The file type are forbidden to access!"
msgstr "El acceso al tipo de archivo está prohibido."
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr ""
"Aviso: no se puede ajustar el límite sin un cliente almacenado en memoria "
"caché"
#, python-format
msgid "method %s is not allowed."
msgstr "el método %s no está permitido."
msgid "no log file found"
msgstr "no se ha encontrado ningún archivo de registro"
msgid "odfpy not installed."
msgstr "odfpy no está instalado."
#, python-format
msgid "plotting results failed due to %s"
msgstr "error en el trazado de resultados debido a %s"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib no está instalado."

View File

@ -1,105 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Maxime COQUEREL <max.coquerel@gmail.com>, 2014
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-04-12 06:42+0000\n"
"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: French\n"
#, python-format
msgid "Can not access the file %s."
msgstr "Ne peut pas accéder au fichier %s."
#, python-format
msgid "Can not load profile data from %s."
msgstr "Impossible de charger des données de profil depuis %s."
#, python-format
msgid "Data download error: %s"
msgstr "Erreur de téléchargement des données: %s"
msgid "Error listing devices"
msgstr "Erreur lors du listage des unités"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "Erreur de rendu des résultats de profilage : %s"
msgid "Error parsing recon cache file"
msgstr "Erreur lors de l'analyse syntaxique du fichier cache Recon"
msgid "Error reading recon cache file"
msgstr "Erreur de lecture du fichier cache Recon"
msgid "Error reading ringfile"
msgstr "Erreur de lecture du fichier Ring"
msgid "Error reading swift.conf"
msgstr "Erreur de lecture de swift.conf"
msgid "Error retrieving recon data"
msgstr "Erreur lors de l'extraction des données Recon"
msgid "Error: An error occurred"
msgstr "Erreur : une erreur s'est produite"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr ""
"Suivi de la chaîne CNAME pour %(given_domain)s jusqu'à %(found_domain)s"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s mappé avec %(found_domain)s"
#, python-format
msgid "Profiling Error: %s"
msgstr "Erreur de profilage : %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"Journal de mise en veille Ratelimit : %(sleep)s pour %(account)s/"
"%(container)s/%(object)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "Renvoi de 497 en raison du placement sur liste noire : %s"
msgid "The file type are forbidden to access!"
msgstr "Accès interdit au type de fichier"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr "Avertissement : impossible d'appliquer Ratelimit sans client memcached"
#, python-format
msgid "method %s is not allowed."
msgstr "Méthode %s interdite."
msgid "no log file found"
msgstr "Pas de fichier log trouvé"
msgid "odfpy not installed."
msgstr "odfpy n'est pas installé."
#, python-format
msgid "plotting results failed due to %s"
msgstr "Echec du traçage des résultats. Cause : %s"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib non installé."

View File

@ -1,106 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-04-12 06:42+0000\n"
"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: Italian\n"
#, python-format
msgid "Can not access the file %s."
msgstr "Impossibile accedere al file %s."
#, python-format
msgid "Can not load profile data from %s."
msgstr "Impossibile caricare i dati del profilo da %s."
#, python-format
msgid "Data download error: %s"
msgstr "Errore di download dei dati: %s"
msgid "Error listing devices"
msgstr "Errore durante l'elenco dei dispositivi"
#, python-format
msgid "Error on render profiling results: %s"
msgstr ""
"Errore durante la visualizzazione dei risultati della creazione dei profili: "
"%s"
msgid "Error parsing recon cache file"
msgstr "Errore durante l'analisi del file della cache di riconoscimento"
msgid "Error reading recon cache file"
msgstr "Errore durante la lettura del file della cache di riconoscimento"
msgid "Error reading ringfile"
msgstr "Errore durante la lettura del ringfile"
msgid "Error reading swift.conf"
msgstr "Errore durante la lettura di swift.conf"
msgid "Error retrieving recon data"
msgstr "Errore durante il richiamo dei dati di riconoscimento"
msgid "Error: An error occurred"
msgstr "Errore: Si è verificato un errore"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr ""
"Viene seguita la catena CNAME per %(given_domain)s verso %(found_domain)s"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s associato a %(found_domain)s"
#, python-format
msgid "Profiling Error: %s"
msgstr "Errore di creazione dei profili: %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"Log di sospensione Ratelimit: %(sleep)s per %(account)s/%(container)s/"
"%(object)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "Viene restituito il codice 497 a causa della blacklist: %s"
msgid "The file type are forbidden to access!"
msgstr "Non è consentito l'accesso a questo tipo di file!"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr "Avvertenza: impossibile eseguire ratelimit senza un client memcached"
#, python-format
msgid "method %s is not allowed."
msgstr "il metodo %s non è consentito."
msgid "no log file found"
msgstr "nessun file di log trovato"
msgid "odfpy not installed."
msgstr "odfpy non installato."
#, python-format
msgid "plotting results failed due to %s"
msgstr "tracciamento dei risultati non riuscito a causa di %s"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib non installato."

View File

@ -1,118 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Sasuke(Kyohei MORIYAMA) <>, 2015
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
# Shu Muto <shu.mutow@gmail.com>, 2018. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-02-09 01:00+0000\n"
"Last-Translator: Shu Muto <shu.mutow@gmail.com>\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: Japanese\n"
#, python-format
msgid "Bad key for %(name)r: %(err)s"
msgstr "%(name)r のキーが不正です: %(err)s"
#, python-format
msgid "Can not access the file %s."
msgstr "ファイル %s にアクセスできません。"
#, python-format
msgid "Can not load profile data from %s."
msgstr "プロファイルデータを %s からロードできません。"
#, python-format
msgid "Data download error: %s"
msgstr "データダウンロードエラー: %s"
msgid "Did not get a keys dict"
msgstr "キーの辞書を取得できませんでした。"
msgid "ERROR get_keys() missing callback"
msgstr "エラー get_keys() コールバックがありません"
msgid "Error listing devices"
msgstr "デバイスのリストエラー"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "レンダリングプロファイル結果でのエラー: %s"
msgid "Error parsing recon cache file"
msgstr "再構成キャッシュファイルの構文解析エラー"
msgid "Error reading recon cache file"
msgstr "再構成キャッシュファイルの読み取りエラー"
msgid "Error reading ringfile"
msgstr "リングファイルの読み取りエラー"
msgid "Error reading swift.conf"
msgstr "swift.conf の読み取りエラー"
msgid "Error retrieving recon data"
msgstr "再構成データの取得エラー"
msgid "Error: An error occurred"
msgstr "エラー: エラーが発生しました"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s から %(found_domain)s へ CNAME チェーンをフォロー中"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s が %(found_domain)s にマップされました"
#, python-format
msgid "Missing key for %r"
msgstr "%r にキーがありません。"
#, python-format
msgid "Profiling Error: %s"
msgstr "プロファイル作成エラー: %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"Ratelimit スリープログ: %(account)s/%(container)s/%(object)s の %(sleep)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "ブラックリスティングのため 497 を返しています: %s"
msgid "The file type are forbidden to access!"
msgstr "このファイルタイプにはアクセスが禁止されています"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr "警告: memcached クライアントなしで ratelimit を行うことはできません"
#, python-format
msgid "method %s is not allowed."
msgstr "メソッド %s は許可されていません。"
msgid "no log file found"
msgstr "ログファイルが見つかりません"
msgid "odfpy not installed."
msgstr "odfpy がインストールされていません。"
#, python-format
msgid "plotting results failed due to %s"
msgstr "%s が原因で結果のプロットに失敗しました"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib がインストールされていません。"

View File

@ -1,104 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Mario Cho <hephaex@gmail.com>, 2014
# Ying Chun Guo <daisy.ycguo@gmail.com>, 2015
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-04-12 06:43+0000\n"
"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
"Language: ko_KR\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: Korean (South Korea)\n"
#, python-format
msgid "Can not access the file %s."
msgstr "파일 %s에 액세스할 수 없습니다."
#, python-format
msgid "Can not load profile data from %s."
msgstr "%s에서 프로파일 데이터를 로드할 수 없습니다."
#, python-format
msgid "Data download error: %s"
msgstr "데이터 다운로드 오류: %s"
msgid "Error listing devices"
msgstr "디바이스 나열 중 오류 발생"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "프로파일링 결과를 렌더링하는 중 오류 발생: %s"
msgid "Error parsing recon cache file"
msgstr "조정 캐시 파일을 구문 분석하는 중 오류 발생"
msgid "Error reading recon cache file"
msgstr "조정 캐시 파일을 읽는 중 오류 발생"
msgid "Error reading ringfile"
msgstr "링 파일을 읽는 중 오류 발생"
msgid "Error reading swift.conf"
msgstr "swift.conf를 읽는 중 오류 발생"
msgid "Error retrieving recon data"
msgstr "조정 데이터를 검색하는 중에 오류 발생"
msgid "Error: An error occurred"
msgstr "오류: 오류 발생"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s에서 %(found_domain)s(으)로의 다음 CNAME 체인"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s을(를) %(found_domain)s(으)로 맵핑함"
#, python-format
msgid "Profiling Error: %s"
msgstr "프로파일링 오류: %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"%(account)s/%(container)s/%(object)s에 대한 Ratelimit 휴면 로그: %(sleep)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "블랙리스트 지정으로 인해 497이 리턴됨: %s"
msgid "The file type are forbidden to access!"
msgstr "이 파일 유형에 대한 액세스가 금지되었습니다!"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr "경고: memcached 클라이언트 없이 전송률을 제한할 수 없음"
#, python-format
msgid "method %s is not allowed."
msgstr "메소드 %s이(가) 허용되지 않습니다."
msgid "no log file found"
msgstr "로그 파일을 찾을 수 없음"
msgid "odfpy not installed."
msgstr "odfpy가 설치되어 있지 않습니다."
#, python-format
msgid "plotting results failed due to %s"
msgstr "%s(으)로 인해 결과 표시 실패"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib가 설치되어 있지 않습니다."

View File

@ -1,107 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Andre Campos Bezerra <andrecbezerra@gmail.com>, 2015
# Lucas Ribeiro <lucasribeiro1990@gmail.com>, 2014
# thiagol <thiago@redhat.com>, 2015
# Volmar Oliveira Junior <volmar.oliveira.jr@gmail.com>, 2014
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-04-12 06:43+0000\n"
"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: Portuguese (Brazil)\n"
#, python-format
msgid "Can not access the file %s."
msgstr "Não é possível acessar o arquivo %s."
#, python-format
msgid "Can not load profile data from %s."
msgstr "Não é possível carregar dados do perfil a partir de %s."
#, python-format
msgid "Data download error: %s"
msgstr "Erro ao fazer download de dados: %s"
msgid "Error listing devices"
msgstr "Erro ao listar dispositivos"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "Erro na renderização de resultados de criação de perfil: %s"
msgid "Error parsing recon cache file"
msgstr "Erro ao analisar o arquivo de cache de reconhecimento"
msgid "Error reading recon cache file"
msgstr "Erro ao ler o arquivo de cache de reconhecimento"
msgid "Error reading ringfile"
msgstr "Erro na leitura do ringfile"
msgid "Error reading swift.conf"
msgstr "Erro ao ler swift.conf"
msgid "Error retrieving recon data"
msgstr "Erro ao recuperar dados de reconhecimento"
msgid "Error: An error occurred"
msgstr "Erro: Ocorreu um erro"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "Cadeia CNAME a seguir para %(given_domain)s para%(found_domain)s"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s mapeado para %(found_domain)s"
#, python-format
msgid "Profiling Error: %s"
msgstr "Erro da Criação de Perfil: %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"Log de suspensão do limite de taxa: %(sleep)s para %(account)s/%(container)s/"
"%(object)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "Retornando 497 por causa da listagem negra: %s"
msgid "The file type are forbidden to access!"
msgstr "O tipo de arquivo é de acesso proibido!"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr "Aviso: Não é possível um limite de taxa sem um cliente memcached"
#, python-format
msgid "method %s is not allowed."
msgstr "o método %s não é permitido."
msgid "no log file found"
msgstr "Nenhum arquivo de log encontrado"
msgid "odfpy not installed."
msgstr "odfpy não está instalado."
#, python-format
msgid "plotting results failed due to %s"
msgstr "plotar resultados falhou devido a %s"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib não instalado."

View File

@ -1,107 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-04-12 06:43+0000\n"
"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
"Language: ru\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
"%100>=11 && n%100<=14)? 2 : 3);\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: Russian\n"
#, python-format
msgid "Can not access the file %s."
msgstr "Отсутствует доступ к файлу %s."
#, python-format
msgid "Can not load profile data from %s."
msgstr "Не удается загрузить данные профайла из %s."
#, python-format
msgid "Data download error: %s"
msgstr "Ошибка загрузки данных: %s"
msgid "Error listing devices"
msgstr "Ошибка при выводе списка устройств"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "Ошибка при выводе результатов профилирования: %s"
msgid "Error parsing recon cache file"
msgstr "Ошибка анализа файла кэша recon"
msgid "Error reading recon cache file"
msgstr "Ошибка чтения файла кэша recon"
msgid "Error reading ringfile"
msgstr "Ошибка при чтении ringfile"
msgid "Error reading swift.conf"
msgstr "Ошибка чтения swift.conf"
msgid "Error retrieving recon data"
msgstr "Ошибка при получении данных recon"
msgid "Error: An error occurred"
msgstr "Ошибка: произошла ошибка"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "Следующая цепочка CNAME для %(given_domain)s в %(found_domain)s"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "Преобразовано %(given_domain)s в %(found_domain)s"
#, python-format
msgid "Profiling Error: %s"
msgstr "Ошибка профилирования: %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"Протокол тайм-аута при ограничении скорости %(sleep)s для %(account)s/"
"%(container)s/%(object)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "Возвращено 497 из-за черного списка: %s"
msgid "The file type are forbidden to access!"
msgstr "Запрещен доступ к этому типу файла!"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr ""
"Предупреждение: не удается ограничить скорость без клиента с кэшированием "
"памяти"
#, python-format
msgid "method %s is not allowed."
msgstr "Метод %s не разрешен."
msgid "no log file found"
msgstr "Не найден файл протокола"
msgid "odfpy not installed."
msgstr "Библиотека odfpy не установлена."
#, python-format
msgid "plotting results failed due to %s"
msgstr "Ошибка в результатах plotting из-за %s"
msgid "python-matplotlib not installed."
msgstr "Библиотека python-matplotlib не установлена."

View File

@ -1,103 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# İşbaran Akçayır <isbaran@gmail.com>, 2015
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-04-12 06:43+0000\n"
"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
"Language: tr_TR\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: Turkish (Turkey)\n"
#, python-format
msgid "Can not access the file %s."
msgstr "%s dosyasına erişilemiyor."
#, python-format
msgid "Can not load profile data from %s."
msgstr "%s'den profil verisi yüklenemiyor."
#, python-format
msgid "Data download error: %s"
msgstr "Veri indirme hatası: %s"
msgid "Error listing devices"
msgstr "Aygıtları listelemede hata"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "Profilleme sonuçlarının gerçeklenmesinde hata: %s"
msgid "Error parsing recon cache file"
msgstr "Recon zula dosyasını ayrıştırmada hata"
msgid "Error reading recon cache file"
msgstr "Recon zula dosyası okumada hata"
msgid "Error reading ringfile"
msgstr "Halka dosyası okunurken hata"
msgid "Error reading swift.conf"
msgstr "swift.conf okunurken hata"
msgid "Error retrieving recon data"
msgstr "Recon verisini almada hata"
msgid "Error: An error occurred"
msgstr "Hata: Bir hata oluştu"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s den %(found_domain)s e CNAME zinciri takip ediliyor"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "%(given_domain)s %(found_domain)s eşleştirildi"
#, python-format
msgid "Profiling Error: %s"
msgstr "Profilleme Hatası: %s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr ""
"Oran sınırı uyku kaydı: %(account)s/%(container)s/%(object)s için %(sleep)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "Kara listeleme yüzünden 497 döndürülüyor: %s"
msgid "The file type are forbidden to access!"
msgstr "Dosya türüne erişim yasaklanmış!"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr "Uyarı: Memcached istemcisi olmadan oran sınırlama yapılamaz"
#, python-format
msgid "method %s is not allowed."
msgstr "%s metoduna izin verilmez."
msgid "no log file found"
msgstr "kayıt dosyası bulunamadı"
msgid "odfpy not installed."
msgstr "odfpy kurulu değil."
#, python-format
msgid "plotting results failed due to %s"
msgstr "çizdirme sonuçlaru %s sebebiyle başarısız"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib kurulu değil."

View File

@ -1,102 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Pearl Yajing Tan(Seagate Tech) <pearl.y.tan@seagate.com>, 2014
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-04-12 06:43+0000\n"
"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: Chinese (China)\n"
#, python-format
msgid "Can not access the file %s."
msgstr "无法访问文件%s"
#, python-format
msgid "Can not load profile data from %s."
msgstr "无法从%s下载分析数据"
#, python-format
msgid "Data download error: %s"
msgstr "数据下载错误:%s"
msgid "Error listing devices"
msgstr "设备列表时出现错误"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "给予分析结果时发生错误:%s"
msgid "Error parsing recon cache file"
msgstr "解析recon cache file时出现错误"
msgid "Error reading recon cache file"
msgstr "读取recon cache file时出现错误"
msgid "Error reading ringfile"
msgstr "读取ringfile时出现错误"
msgid "Error reading swift.conf"
msgstr "读取swift.conf时出现错误"
msgid "Error retrieving recon data"
msgstr "检索recon data时出现错误"
msgid "Error: An error occurred"
msgstr "错误:一个错误发生了"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "跟随CNAME链从%(given_domain)s到%(found_domain)s"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "集合%(given_domain)s到%(found_domain)s"
#, python-format
msgid "Profiling Error: %s"
msgstr "分析代码时出现错误:%s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr "流量控制休眠日志:%(sleep)s for %(account)s/%(container)s/%(object)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "返回497因为黑名单%s"
msgid "The file type are forbidden to access!"
msgstr "该文件类型被禁止访问!"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr "警告:缺失缓存客户端 无法控制流量 "
#, python-format
msgid "method %s is not allowed."
msgstr "方法%s不被允许"
msgid "no log file found"
msgstr "日志文件丢失"
msgid "odfpy not installed."
msgstr "odfpy未安装"
#, python-format
msgid "plotting results failed due to %s"
msgstr "绘制结果图标时失败因为%s"
msgid "python-matplotlib not installed."
msgstr "python-matplotlib未安装"

View File

@ -1,101 +0,0 @@
# Translations template for swift.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the swift project.
#
# Translators:
# Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata
msgid ""
msgstr ""
"Project-Id-Version: swift VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
"POT-Creation-Date: 2023-06-27 13:31+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-04-12 06:43+0000\n"
"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
"Language: zh_TW\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Generated-By: Babel 2.0\n"
"X-Generator: Zanata 4.3.3\n"
"Language-Team: Chinese (Taiwan)\n"
#, python-format
msgid "Can not access the file %s."
msgstr "無法存取檔案 %s。"
#, python-format
msgid "Can not load profile data from %s."
msgstr "無法從 %s 中載入設定檔資料。"
#, python-format
msgid "Data download error: %s"
msgstr "資料下載錯誤:%s"
msgid "Error listing devices"
msgstr "列出裝置時發生錯誤"
#, python-format
msgid "Error on render profiling results: %s"
msgstr "呈現側寫結果時發生錯誤:%s"
msgid "Error parsing recon cache file"
msgstr "剖析 recon 快取檔案時發生錯誤"
msgid "Error reading recon cache file"
msgstr "讀取 recon 快取檔案時發生錯誤"
msgid "Error reading ringfile"
msgstr "讀取 ringfile 時發生錯誤"
msgid "Error reading swift.conf"
msgstr "讀取 swift.conf 時發生錯誤"
msgid "Error retrieving recon data"
msgstr "擷取 recon 資料時發生錯誤"
msgid "Error: An error occurred"
msgstr "錯誤:發生錯誤"
#, python-format
msgid "Following CNAME chain for %(given_domain)s to %(found_domain)s"
msgstr "遵循 %(given_domain)s 到 %(found_domain)s 的 CNAME 鏈"
#, python-format
msgid "Mapped %(given_domain)s to %(found_domain)s"
msgstr "已將 %(given_domain)s 對映至 %(found_domain)s"
#, python-format
msgid "Profiling Error: %s"
msgstr "側寫錯誤:%s"
#, python-format
msgid "Ratelimit sleep log: %(sleep)s for %(account)s/%(container)s/%(object)s"
msgstr "%(account)s/%(container)s/%(object)s 的 ratelimit 休眠日誌:%(sleep)s"
#, python-format
msgid "Returning 497 because of blacklisting: %s"
msgstr "由於黑名單,正在傳回 497%s"
msgid "The file type are forbidden to access!"
msgstr "此檔案類型禁止存取!"
msgid "Warning: Cannot ratelimit without a memcached client"
msgstr "警告:無法在沒有 memcached 用戶端的情況下限制速率"
#, python-format
msgid "method %s is not allowed."
msgstr "不容許方法 %s。"
msgid "no log file found"
msgstr "找不到日誌檔"
msgid "odfpy not installed."
msgstr "未安裝 odfpy。"
#, python-format
msgid "plotting results failed due to %s"
msgstr "由於 %s繪製結果失敗"
msgid "python-matplotlib not installed."
msgstr "未安裝 python-matplotlib。"

View File

@ -21,7 +21,6 @@ import unittest
from io import BytesIO
from swift import gettext_ as _
from swift.common.swob import Request, Response
try:
@ -479,11 +478,10 @@ class Test_html_viewer(unittest.TestCase):
self.assertIn('makedirs', self.viewer.format_source_code(nfl_os))
self.assertNotIn('makedirsXYZ', self.viewer.format_source_code(nfl_os))
nfl_illegal = '%sc:136(makedirs)' % osfile
self.assertIn(_('The file type are forbidden to access!'),
self.assertIn('The file type are forbidden to access!',
self.viewer.format_source_code(nfl_illegal))
nfl_not_exist = '%s.py:136(makedirs)' % osfile
expected_msg = _('Can not access the file %s.py.') % osfile
self.assertIn(expected_msg,
self.assertIn('Can not access the file %s.py.' % osfile,
self.viewer.format_source_code(nfl_not_exist))

View File

@ -1,3 +0,0 @@
rebuild the .mo with msgfmt (included with GNU gettext)
msgfmt eo.po

View File

@ -1,7 +0,0 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "test message"
msgstr "prova mesaĝo"

View File

@ -1 +0,0 @@
../../messages.mo

Binary file not shown.

View File

@ -1,45 +0,0 @@
# Copyright (c) 2013 OpenStack Foundation
#
# 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.
from __future__ import print_function
import os
import unittest
import sys
from subprocess import check_output
class TestTranslations(unittest.TestCase):
def test_translations(self):
translated_message = check_output([sys.executable, __file__], env={
# Need to set this so py36 can do UTF-8, but we override later
'LC_ALL': 'en_US.UTF-8',
# Nothing else should be in the env, so we won't taint our test
})
self.assertEqual(translated_message,
u'prova mesa\u011do\n'.encode('utf-8'))
if __name__ == "__main__":
path = os.path.realpath(__file__)
# Override the language and localedir *before* importing swift
# so we get translations
os.environ['LC_ALL'] = 'eo'
os.environ['SWIFT_LOCALEDIR'] = os.path.dirname(path)
# Make sure we can find swift
sys.path.insert(0, os.path.sep.join(path.split(os.path.sep)[:-4]))
from swift import gettext_ as _
print(_('test message'))