Mark the names and descriptions of included lua macros as translatable

Originally committed to SVN as r6584.
This commit is contained in:
Thomas Goyne 2012-03-12 23:35:37 +00:00
parent 55eb230ef6
commit f4c1fb441e
7 changed files with 35 additions and 21 deletions

View File

@ -26,8 +26,10 @@ OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
]] ]]
script_name = "Clean Tags" local tr = aegisub.gettext
script_description = "Clean subtitle lines by re-arranging ASS tags and override blocks within the lines"
script_name = tr"Clean Tags"
script_description = tr"Clean subtitle lines by re-arranging ASS tags and override blocks within the lines"
script_author = "Muhammad Lukman Nasaruddin (ai-chan)" script_author = "Muhammad Lukman Nasaruddin (ai-chan)"
script_version = "1.20" script_version = "1.20"
script_modified = "25 February 2009" script_modified = "25 February 2009"

View File

@ -31,8 +31,10 @@
-- Parse and apply a karaoke effect written in ASS karaoke template language -- Parse and apply a karaoke effect written in ASS karaoke template language
-- See help file and wiki for more information on this -- See help file and wiki for more information on this
script_name = "Karaoke Templater" local tr = aegisub.gettext
script_description = "Macro and export filter to apply karaoke effects using the template language"
script_name = tr"Karaoke Templater"
script_description = tr"Macro and export filter to apply karaoke effects using the template language"
script_author = "Niels Martin Hansen" script_author = "Niels Martin Hansen"
script_version = "2.1.7" script_version = "2.1.7"
@ -853,5 +855,5 @@ function macro_can_template(subs)
return false return false
end end
aegisub.register_macro("Apply karaoke template", "Applies karaoke effects from templates", macro_apply_templates, macro_can_template) aegisub.register_macro(tr"Apply karaoke template", tr"Applies karaoke effects from templates", macro_apply_templates, macro_can_template)
aegisub.register_filter("Karaoke template", "Apply karaoke effect templates to the subtitles.\n\nSee the help file for information on how to use this.", 2000, filter_apply_templates) aegisub.register_filter(tr"Karaoke template", tr"Apply karaoke effect templates to the subtitles.\n\nSee the help file for information on how to use this.", 2000, filter_apply_templates)

View File

@ -27,8 +27,10 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
]] ]]
script_name = "Automatic karaoke lead-in" local tr = aegisub.gettext
script_description = "Join up the ends of selected lines and add \k tags to shift karaoke"
script_name = tr"Automatic karaoke lead-in"
script_description = tr"Join up the ends of selected lines and add \k tags to shift karaoke"
script_author = "Niels Martin Hansen" script_author = "Niels Martin Hansen"
script_version = "1.0" script_version = "1.0"

View File

@ -1,8 +1,10 @@
-- Automation 4 demo script -- Automation 4 demo script
-- Macro that adds \be1 tags in front of every selected line -- Macro that adds \be1 tags in front of every selected line
script_name = "Add edgeblur macro" local tr = aegisub.gettext
script_description = "A demo macro showing how to do simple line modification in Automation 4"
script_name = tr"Add edgeblur"
script_description = tr"A demo macro showing how to do simple line modification in Automation 4"
script_author = "Niels Martin Hansen" script_author = "Niels Martin Hansen"
script_version = "1" script_version = "1"
@ -13,7 +15,7 @@ function add_edgeblur(subtitles, selected_lines, active_line)
l.text = "{\\be1}" .. l.text l.text = "{\\be1}" .. l.text
subtitles[i] = l subtitles[i] = l
end end
aegisub.set_undo_point("Add edgeblur") aegisub.set_undo_point(script_name)
end end
aegisub.register_macro("Add edgeblur", "Adds \\be1 tags to all selected lines", add_edgeblur) aegisub.register_macro(script_name, tr"Adds \\be1 tags to all selected lines", add_edgeblur)

View File

@ -1,8 +1,10 @@
-- Automation 4 demo script -- Automation 4 demo script
-- Converts halfwidth (ASCII) Latin letters to fullwidth JIS Latin letters -- Converts halfwidth (ASCII) Latin letters to fullwidth JIS Latin letters
script_name = "Make text fullwidth" local tr = aegisub.gettext
script_description = "Shows how to use the unicode include to iterate over characters and a lookup table to convert those characters to something else."
script_name = tr("Make text fullwidth")
script_description = tr("Shows how to use the unicode include to iterate over characters and a lookup table to convert those characters to something else.")
script_author = "Niels Martin Hansen" script_author = "Niels Martin Hansen"
script_version = "1" script_version = "1"
@ -72,7 +74,7 @@ function make_fullwidth(subtitles, selected_lines, active_line)
l.text = newtext l.text = newtext
subtitles[i] = l subtitles[i] = l
end end
aegisub.set_undo_point("Make fullwidth") aegisub.set_undo_point(tr"Make fullwidth")
end end
aegisub.register_macro("Make fullwidth", "Convert Latin letters to SJIS fullwidth letters", make_fullwidth) aegisub.register_macro(tr"Make fullwidth", tr"Convert Latin letters to SJIS fullwidth letters", make_fullwidth)

View File

@ -14,8 +14,10 @@
-- --
-- $Id$ -- $Id$
script_name = "Select overlaps" local tr = aegisub.gettext
script_description = "Select lines which begin while another non-comment line is active"
script_name = tr"Select overlaps"
script_description = tr"Select lines which begin while another non-comment line is active"
script_author = "Thomas Goyne" script_author = "Thomas Goyne"
script_version = "1" script_version = "1"

View File

@ -14,8 +14,10 @@
-- --
-- $Id$ -- $Id$
script_name = "Strip tags" local tr = aegisub.gettext
script_description = "Remove all override tags from selected lines"
script_name = tr"Strip tags"
script_description = tr"Remove all override tags from selected lines"
script_author = "Thomas Goyne" script_author = "Thomas Goyne"
script_version = "1" script_version = "1"
@ -25,7 +27,7 @@ function strip_tags(subs, sel)
line.text = line.text:gsub("{[^}]+}", "") line.text = line.text:gsub("{[^}]+}", "")
subs[i] = line subs[i] = line
end end
aegisub.set_undo_point("Strip tags") aegisub.set_undo_point(tr"strip tags")
end end
aegisub.register_macro(script_name, script_description, strip_tags) aegisub.register_macro(script_name, script_description, strip_tags)