diff options
author | Einar Egilsson | 2011-08-26 14:37:27 +0200 |
---|---|---|
committer | Einar Egilsson | 2011-08-26 14:37:27 +0200 |
commit | 3ac1838cba725705a96a9d7b65721b15f4ec67b1 (patch) | |
tree | 6eea260d1e5882ba1031c5bb78bd2b9ac0884fb9 /locale | |
parent | 5aefd85d7975c8934b32a30a1dec68aa421cdee3 (diff) |
Moved everything to a js module, removed custom xpcom interfaces
Diffstat (limited to 'locale')
-rw-r--r-- | locale/en-US/browserOverlay.xul.dtd | 9 | ||||
-rw-r--r-- | locale/en-US/editRedirect.xul.dtd | 14 | ||||
-rw-r--r-- | locale/en-US/redirector.properties | 33 | ||||
-rw-r--r-- | locale/en-US/settings.xul.dtd | 65 | ||||
-rw-r--r-- | locale/zh-CN/browserOverlay.xul.dtd | 9 | ||||
-rw-r--r-- | locale/zh-CN/editRedirect.xul.dtd | 14 | ||||
-rw-r--r-- | locale/zh-CN/redirector.properties | 33 | ||||
-rw-r--r-- | locale/zh-CN/settings.xul.dtd | 65 |
8 files changed, 242 insertions, 0 deletions
diff --git a/locale/en-US/browserOverlay.xul.dtd b/locale/en-US/browserOverlay.xul.dtd new file mode 100644 index 0000000..3aaa0fc --- /dev/null +++ b/locale/en-US/browserOverlay.xul.dtd @@ -0,0 +1,9 @@ +<!-- $Id$ --> +<!ENTITY RedirectorMenuItem.label "Redirector"> +<!ENTITY RedirectorMenuItem.accesskey "R"> +<!ENTITY RedirectorContext.label "Add url to Redirector..."> +<!ENTITY RedirectorContext.accesskey "A"> +<!ENTITY RedirectorManageRedirects.label "Manage redirects"> +<!ENTITY RedirectorManageRedirects.accesskey "M"> +<!ENTITY RedirectorHelp.label "Help"> +<!ENTITY RedirectorHelp.accesskey "H"> diff --git a/locale/en-US/editRedirect.xul.dtd b/locale/en-US/editRedirect.xul.dtd new file mode 100644 index 0000000..4b48d9c --- /dev/null +++ b/locale/en-US/editRedirect.xul.dtd @@ -0,0 +1,14 @@ +<!-- $Id$ --> +<!ENTITY redirectWindow.title "Redirect"> +<!ENTITY txtExampleUrl.label "Example url"> +<!ENTITY txtIncludePattern.label "Include Pattern"> +<!ENTITY txtExcludePattern.label "Exclude Pattern"> +<!ENTITY txtRedirectUrl.label "Redirect to"> +<!ENTITY btnTestPattern.label "Test pattern"> +<!ENTITY rdoWildcard.label "Wildcard"> +<!ENTITY rdoWildcard.accessKey "W"> +<!ENTITY rdoRegex.label "Regular Expression"> +<!ENTITY rdoPatternTypes.label "Pattern Type"> +<!ENTITY rdoRegex.accessKey "R"> +<!ENTITY chkUnescapeMatches.label "Unescape matches"> + diff --git a/locale/en-US/redirector.properties b/locale/en-US/redirector.properties new file mode 100644 index 0000000..128d08e --- /dev/null +++ b/locale/en-US/redirector.properties @@ -0,0 +1,33 @@ +# $Id$ +initError=Failed to initialize Redirector. +extensions.redirector@einaregilsson.com.description=Automatically redirects to user-defined urls on certain pages +extensionName=Redirector +addCurrentUrl=Add current url to Redirector +addLinkUrl=Add link url to Redirector +recursiveError=A redirect with the pattern %S matches %S and is trying to redirect to it again. You should change this rule so it won't work recursively. +enabledTooltip=Redirector is enabled +disabledTooltip=Redirector is disabled +testPatternSuccess=The pattern %S matches example URL %S, and would redirect you to url: %S +testPatternFailure=The pattern %S does not match example URL %S +testPatternExclude=Example URL %S matches the exclude pattern %S and so would not be redirected +regexPatternError=The pattern '%S' is not a legal regular expression pattern. Details: %S +xpathDeprecated=XPath patterns are no longer supported as of version 1.5.1, please remove those redirects. +redirectorFiles=Redirector files (*.rdx) +exportCaption=Export redirects... +importCaption=Import redirects... +deleteConfirmationText=Are you sure you want to permanently delete this redirect? +deleteConfirmationTitle=Delete redirect? +importedMessage=%S redirects were imported +importedMessageSingular=%S redirect was imported +existedMessage=%S redirects were identical to existing redirects and were therefore not imported. +existedMessageSingular=%S redirect was identical to an existing redirect and was therefore not imported. +allExistedMessage=All %S redirects in the file were identical to existing redirects, no redirects were imported. +allExistedMessageSingular=The single redirect in the file was identical to an existing redirect and was therefore not imported. +importedNone=There were no usable redirects in the given file, no redirects were imported. +importResult=Import results +invalidRedirectTitle=Redirector Add-on: Invalid Redirect detected +invalidRedirectText=The pattern "%S" redirected the url %S to %S which also matches the pattern. This will cause an endless loop and so the redirect has been disabled to prevent this from happening. You should edit this redirect to fix it. +warningExampleUrlDoesntMatchPatternTitle=Warning: Example url does not match redirect +warningExampleUrlDoesntMatchPattern=The example url does not match the redirect specified. Are you sure you want to save this redirect? +errorExampleUrlMatchesRecursiveTitle=Error: Recursive match detected +errorExampleUrlMatchesRecursive=The example url %S matches the redirect and would redirect you to %S, which also matches the redirect. This is not allowed as it can cause an endless loop of requests.
\ No newline at end of file diff --git a/locale/en-US/settings.xul.dtd b/locale/en-US/settings.xul.dtd new file mode 100644 index 0000000..ff55b68 --- /dev/null +++ b/locale/en-US/settings.xul.dtd @@ -0,0 +1,65 @@ +<!-- $Id$ --> +<!ENTITY window.title "Redirector"> + +<!-- ListItems with redirects --> +<!ENTITY colIncludePattern.label "Include pattern"> +<!ENTITY colExcludePattern.label "Exclude pattern"> +<!ENTITY colRedirectTo.label "Redirect to"> +<!ENTITY colEnabled.label "Enabled"> + +<!-- Buttons --> +<!ENTITY btnAdd.label "Add..."> +<!ENTITY btnAdd.accesskey "A"> +<!ENTITY btnAdd.tooltip "Create a new redirect"> + +<!ENTITY btnEdit.label "Edit..."> +<!ENTITY btnEdit.accesskey "E"> +<!ENTITY btnEdit.tooltip "Edit the selected redirect"> + +<!ENTITY btnDelete.label "Delete"> +<!ENTITY btnDelete.accesskey "D"> +<!ENTITY btnDelete.tooltip "Delete the selected redirect"> + +<!ENTITY btnUp.tooltip "Move the selected redirect up"> + +<!ENTITY btnDown.tooltip "Move the selected redirect down"> + +<!ENTITY btnImport.label "Import..."> +<!ENTITY btnImport.accesskey "I"> +<!ENTITY btnImport.tooltip "Import redirects from a file"> + +<!ENTITY btnExport.label "Export..."> +<!ENTITY btnExport.accesskey "E"> +<!ENTITY btnExport.tooltip "Export redirects to a file"> + + +<!-- Tab headers --> +<!ENTITY tabRedirects.label "Redirects"> +<!ENTITY tabRedirects.accesskey "R"> +<!ENTITY tabPreferences.label "Preferences"> +<!ENTITY tabPreferences.accesskey "P"> +<!ENTITY tabImportExport.label "Import/Export"> +<!ENTITY tabImportExport.accesskey "m"> +<!ENTITY tabHelp.label "Help"> +<!ENTITY tabHelp.accesskey "H"> + +<!-- Preferences --> +<!ENTITY grpGeneralPreferences.label "General"> +<!ENTITY grpDebuggingPreferences.label "Debugging"> + +<!ENTITY chkEnableRedirector.label "Enable Redirector"> +<!ENTITY chkEnableRedirector.accesskey "E"> + +<!ENTITY chkShowStatusBarIcon.label "Show status bar icon"> +<!ENTITY chkShowStatusBarIcon.accesskey "s"> + +<!ENTITY chkShowContextMenu.label "Show context menu"> +<!ENTITY chkShowContextMenu.accesskey "c"> + +<!ENTITY chkEnableDebugOutput.label "Enable debug output"> +<!ENTITY chkEnableDebugOutput.accesskey "d"> + + +<!-- Import / Export --> +<!ENTITY lblExport.label "Export your redirects to a file"> +<!ENTITY lblImport.label "Import new redirects from a file"> diff --git a/locale/zh-CN/browserOverlay.xul.dtd b/locale/zh-CN/browserOverlay.xul.dtd new file mode 100644 index 0000000..b0567f8 --- /dev/null +++ b/locale/zh-CN/browserOverlay.xul.dtd @@ -0,0 +1,9 @@ +<!-- $Id: browserOverlay.xul.dtd 249 2009-09-15 21:41:06Z einar@einaregilsson.com $ --> +<!ENTITY RedirectorMenuItem.label "管理 URL 重定向"> +<!ENTITY RedirectorMenuItem.accesskey "R"> +<!ENTITY RedirectorContext.label "把 URL 添加到 Redirector 规则..."> +<!ENTITY RedirectorContext.accesskey "A"> +<!ENTITY RedirectorManageRedirects.label "管理规则"> +<!ENTITY RedirectorManageRedirects.accesskey "M"> +<!ENTITY RedirectorHelp.label "帮助"> +<!ENTITY RedirectorHelp.accesskey "H"> diff --git a/locale/zh-CN/editRedirect.xul.dtd b/locale/zh-CN/editRedirect.xul.dtd new file mode 100644 index 0000000..f0ab422 --- /dev/null +++ b/locale/zh-CN/editRedirect.xul.dtd @@ -0,0 +1,14 @@ +<!-- $Id: editRedirect.xul.dtd 253 2009-10-07 11:24:44Z einar@einaregilsson.com $ --> +<!ENTITY redirectWindow.title "Redirector"> +<!ENTITY txtExampleUrl.label "用于测试的 URL"> +<!ENTITY txtIncludePattern.label "使用规则"> +<!ENTITY txtExcludePattern.label "例外规则"> +<!ENTITY txtRedirectUrl.label "重定向到"> +<!ENTITY btnTestPattern.label "测试"> +<!ENTITY rdoWildcard.label "通配符(*)"> +<!ENTITY rdoWildcard.accessKey "W"> +<!ENTITY rdoRegex.label "正则表达式"> +<!ENTITY rdoPatternTypes.label "规则类型"> +<!ENTITY rdoRegex.accessKey "R"> +<!ENTITY chkUnescapeMatches.label "Unescape 匹配部分"> + diff --git a/locale/zh-CN/redirector.properties b/locale/zh-CN/redirector.properties new file mode 100644 index 0000000..866ec1a --- /dev/null +++ b/locale/zh-CN/redirector.properties @@ -0,0 +1,33 @@ +# $Id: redirector.properties 288 2009-10-26 08:13:15Z einar@einaregilsson.com $ +initError=Failed to initialize Redirector. +extensions.redirector@einaregilsson.com.description=根据您设置的规则自动跳转网页。 +extensionName=Redirector +addCurrentUrl=Add current url to Redirector +addLinkUrl=为链接创建 Redirector 规则 +recursiveError=A redirect with the pattern %S matches %S and is trying to redirect to it again. You should change this rule so it won't work recursively. +enabledTooltip=Redirector is enabled +disabledTooltip=Redirector is disabled +testPatternSuccess=The pattern %S matches example URL %S, and would redirect you to url: %S +testPatternFailure=The pattern %S does not match example URL %S +testPatternExclude=Example URL %S matches the exclude pattern %S and so would not be redirected +regexPatternError=The pattern '%S' is not a legal regular expression pattern. Details: %S +xpathDeprecated=XPath patterns are no longer supported as of version 1.5.1, please remove those redirects. +redirectorFiles=Redirector files (*.rdx) +exportCaption=Export redirects... +importCaption=Import redirects... +deleteConfirmationText=Are you sure you want to permanently delete this redirect? +deleteConfirmationTitle=Delete redirect? +importedMessage=%S redirects were imported +importedMessageSingular=%S redirect was imported +existedMessage=%S redirects were identical to existing redirects and were therefore not imported. +existedMessageSingular=%S redirect was identical to an existing redirect and was therefore not imported. +allExistedMessage=All %S redirects in the file were identical to existing redirects, no redirects were imported. +allExistedMessageSingular=The single redirect in the file was identical to an existing redirect and was therefore not imported. +importedNone=There were no usable redirects in the given file, no redirects were imported. +importResult=Import results +invalidRedirectTitle=Redirector Add-on: Invalid Redirect detected +invalidRedirectText=The pattern "%S" redirected the url %S to %S which also matches the pattern. This will cause an endless loop and so the redirect has been disabled to prevent this from happening. You should edit this redirect to fix it. +warningExampleUrlDoesntMatchPatternTitle=Warning: Example url does not match redirect +warningExampleUrlDoesntMatchPattern=The example url does not match the redirect specified. Are you sure you want to save this redirect? +errorExampleUrlMatchesRecursiveTitle=Error: Recursive match detected +errorExampleUrlMatchesRecursive=The example url %S matches the redirect and would redirect you to %S, which also matches the redirect. This is not allowed as it can cause an endless loop of requests.
\ No newline at end of file diff --git a/locale/zh-CN/settings.xul.dtd b/locale/zh-CN/settings.xul.dtd new file mode 100644 index 0000000..0facb3a --- /dev/null +++ b/locale/zh-CN/settings.xul.dtd @@ -0,0 +1,65 @@ +<!-- $Id: settings.xul.dtd 266 2009-10-14 11:13:03Z einar@einaregilsson.com $ --> +<!ENTITY window.title "Redirector"> + +<!-- ListItems with redirects --> +<!ENTITY colIncludePattern.label "使用规则"> +<!ENTITY colExcludePattern.label "例外规则"> +<!ENTITY colRedirectTo.label "重定向到"> +<!ENTITY colEnabled.label "启用"> + +<!-- Buttons --> +<!ENTITY btnAdd.label "增加规则..."> +<!ENTITY btnAdd.accesskey "A"> +<!ENTITY btnAdd.tooltip "新建一条规则"> + +<!ENTITY btnEdit.label "编辑规则..."> +<!ENTITY btnEdit.accesskey "E"> +<!ENTITY btnEdit.tooltip "编辑选定的规则"> + +<!ENTITY btnDelete.label "删除规则"> +<!ENTITY btnDelete.accesskey "D"> +<!ENTITY btnDelete.tooltip "删除选定的规则"> + +<!ENTITY btnUp.tooltip "把规则向上移动一条位置"> + +<!ENTITY btnDown.tooltip "把规则向下移动一条位置"> + +<!ENTITY btnImport.label "导入..."> +<!ENTITY btnImport.accesskey "I"> +<!ENTITY btnImport.tooltip "从文件导入规则"> + +<!ENTITY btnExport.label "导出..."> +<!ENTITY btnExport.accesskey "E"> +<!ENTITY btnExport.tooltip "导出规则到文件"> + + +<!-- Tab headers --> +<!ENTITY tabRedirects.label "重定向规则"> +<!ENTITY tabRedirects.accesskey "R"> +<!ENTITY tabPreferences.label "选项"> +<!ENTITY tabPreferences.accesskey "P"> +<!ENTITY tabImportExport.label "导入/导出"> +<!ENTITY tabImportExport.accesskey "m"> +<!ENTITY tabHelp.label "帮助"> +<!ENTITY tabHelp.accesskey "H"> + +<!-- Preferences --> +<!ENTITY grpGeneralPreferences.label "一般"> +<!ENTITY grpDebuggingPreferences.label "调试"> + +<!ENTITY chkEnableRedirector.label "启用 Redirector"> +<!ENTITY chkEnableRedirector.accesskey "E"> + +<!ENTITY chkShowStatusBarIcon.label "在状态栏显示图标"> +<!ENTITY chkShowStatusBarIcon.accesskey "s"> + +<!ENTITY chkShowContextMenu.label "在右键菜单中显示"> +<!ENTITY chkShowContextMenu.accesskey "c"> + +<!ENTITY chkEnableDebugOutput.label "启用调试输出"> +<!ENTITY chkEnableDebugOutput.accesskey "d"> + + +<!-- Import / Export --> +<!ENTITY lblExport.label "将规则导出到文件"> +<!ENTITY lblImport.label "从文件导入规则"> |