mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
redundant file
This commit is contained in:
parent
76fdbd1239
commit
92ce88e5c0
1 changed files with 0 additions and 62 deletions
62
getter.rb
62
getter.rb
|
|
@ -1,62 +0,0 @@
|
||||||
ids = %w[
|
|
||||||
AnonymousReportingPrompt
|
|
||||||
AnonymousReportingTitle
|
|
||||||
attach
|
|
||||||
cancel
|
|
||||||
close
|
|
||||||
Confirm
|
|
||||||
confirmPruneImages
|
|
||||||
ConfirmQuit
|
|
||||||
ContainersTitle
|
|
||||||
CustomCommand
|
|
||||||
Donate
|
|
||||||
EditConfig
|
|
||||||
Error
|
|
||||||
ErrorOccurred
|
|
||||||
execute
|
|
||||||
ImagesTitle
|
|
||||||
menu
|
|
||||||
mustForceToRemoveContainer
|
|
||||||
navigate
|
|
||||||
nextContext
|
|
||||||
NoContainers
|
|
||||||
NoImages
|
|
||||||
NotEnoughSpace
|
|
||||||
NoViewMachingNewLineFocusedSwitchStatement
|
|
||||||
OpenConfig
|
|
||||||
pressEnterToReturn
|
|
||||||
previousContext
|
|
||||||
ProjectTitle
|
|
||||||
pruneImages
|
|
||||||
PruningStatus
|
|
||||||
remove
|
|
||||||
removeImage
|
|
||||||
removeService
|
|
||||||
removeWithoutPrune
|
|
||||||
removeWithVolumes
|
|
||||||
RemovingStatus
|
|
||||||
resizingPopupPanel
|
|
||||||
restart
|
|
||||||
RestartingStatus
|
|
||||||
RunningSubprocess
|
|
||||||
scroll
|
|
||||||
ServicesTitle
|
|
||||||
stop
|
|
||||||
StopContainer
|
|
||||||
StoppingStatus
|
|
||||||
StopService
|
|
||||||
viewLogs
|
|
||||||
]
|
|
||||||
|
|
||||||
f = File.read('pkg/i18n/english.go')
|
|
||||||
|
|
||||||
f.lines.each_with_index do |line, index|
|
|
||||||
if line[/ID:/]
|
|
||||||
stripped = line.strip.gsub(/ID: *"/, '",').gsub('",', '')
|
|
||||||
if ids.include?(stripped)
|
|
||||||
key = stripped[0].upcase + stripped[1..-1]
|
|
||||||
value = f.lines[index+1].strip.gsub(/Other: *"/, '').gsub('",', '')
|
|
||||||
puts "#{key}: \"#{value}\","
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Loading…
Add table
Reference in a new issue