Class: AndroidStringsUpdater
Instance Method Summary
collapse
#get_document_id, #push_project, #read_settings, #working_dictionary
Instance Method Details
15
16
17
|
# File 'lib/android_strings_updater.rb', line 15
def ()
@document += "\n <!-- #{} -->\n\n"
end
|
#add_translation(key, to) ⇒ Object
10
11
12
|
# File 'lib/android_strings_updater.rb', line 10
def add_translation(key, to)
@document += " <stringname=\"#{key}\">#{to}</string>\n"
end
|
#begin_document ⇒ Object
2
3
4
|
# File 'lib/android_strings_updater.rb', line 2
def begin_document
@document = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n"
end
|
#end_document ⇒ Object
6
7
8
|
# File 'lib/android_strings_updater.rb', line 6
def end_document
@document += "</resources>"
end
|