mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Update translation bindata
This commit is contained in:
		@@ -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))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user