Merge pull request #40601 from liggitt/bindata

Automatic merge from submit-queue (batch tested with PRs 40132, 39302, 40194, 40619, 40601)

Update translation bindata

Make on master leaves these changes in bindata.go
This commit is contained in:
Kubernetes Submit Queue 2017-01-27 18:32:27 -08:00 committed by GitHub
commit 63fed78005

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))