mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Update translation bindata
This commit is contained in:
parent
4447290096
commit
31136b6f19
@ -53,7 +53,22 @@ func (fi bindataFileInfo) Sys() interface{} {
|
||||
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.
|
||||
Expects to be run from the root directory of the repository.
|
||||
|
||||
@ -128,7 +143,7 @@ def replace(filename, matchers):
|
||||
for translation_string in STRINGS:
|
||||
msg_string = translation_string[0]
|
||||
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('msgid {}\n'.format(msg_string))
|
||||
tfile.write('msgstr {}\n'.format(msg_string))
|
||||
|
Loading…
Reference in New Issue
Block a user