Update translation bindata

This commit is contained in:
Jordan Liggitt 2017-01-27 09:56:52 -05:00
parent 4447290096
commit 31136b6f19
No known key found for this signature in database
GPG Key ID: 24E7ADF9A3B42012

View File

@ -53,7 +53,22 @@ func (fi bindataFileInfo) Sys() interface{} {
return nil return nil
} }
var _translationsExtractPy = []byte(`#!/usr/bin/python var _translationsExtractPy = []byte(`#!/usr/bin/env python
# Copyright 2017 The Kubernetes Authors.
#
# 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.
"""Extract strings from command files and externalize into translation files. """Extract strings from command files and externalize into translation files.
Expects to be run from the root directory of the repository. Expects to be run from the root directory of the repository.
@ -128,7 +143,7 @@ def replace(filename, matchers):
for translation_string in STRINGS: for translation_string in STRINGS:
msg_string = translation_string[0] msg_string = translation_string[0]
tfile.write('\n') tfile.write('\n')
tfile.write('# https://github.com/kubernetes/kubernetes/blob/master{}#L{}\n'.format(translation_string[1], translation_string[2])) tfile.write('# https://github.com/kubernetes/kubernetes/blob/master/{}#L{}\n'.format(translation_string[1], translation_string[2]))
tfile.write('msgctxt {}\n'.format(msg_string)) tfile.write('msgctxt {}\n'.format(msg_string))
tfile.write('msgid {}\n'.format(msg_string)) tfile.write('msgid {}\n'.format(msg_string))
tfile.write('msgstr {}\n'.format(msg_string)) tfile.write('msgstr {}\n'.format(msg_string))