emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Adding Simplified Chinese(UTF-8) translation for org-exp
@ 2012-03-18  4:36 tumashu
  2012-03-18 17:58 ` David Maus
  0 siblings, 1 reply; 4+ messages in thread
From: tumashu @ 2012-03-18  4:36 UTC (permalink / raw)
  To: emacs-orgmode


---
 lisp/org-exp.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index a1102a8..229d83c 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -200,7 +200,8 @@ This option can also be set with the +OPTIONS line, e.g. \"-:nil\"."
     ("nn" "Forfattar"  "Dato"  "Innhald" "Fotnotar")  ;; nn = Norsk (nynorsk)
     ("pl" "Autor"      "Data" "Spis treści"  "Przypis")
     ("ru" "Автор"      "Дата"  "Содержание" "Сноски")
-    ("sv" "Författare" "Datum" "Innehåll" "Fotnoter"))
+    ("sv" "Författare" "Datum" "Innehåll" "Fotnoter")
+    ("zh_CN" "作者" "日期" "目录" "脚注"))
   "Terms used in export text, translated to different languages.
 Use the variable `org-export-default-language' to set the language,
 or use the +OPTION lines for a per-file setting."
-- 
1.7.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Adding Simplified Chinese(UTF-8) translation for org-exp
  2012-03-18  4:36 [PATCH] Adding Simplified Chinese(UTF-8) translation for org-exp tumashu
@ 2012-03-18 17:58 ` David Maus
  2012-03-19  5:47   ` tumashu
  0 siblings, 1 reply; 4+ messages in thread
From: David Maus @ 2012-03-18 17:58 UTC (permalink / raw)
  To: tumashu; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 124 bytes --]

Accepted, thanks!

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #2: OpenPGP Digital Signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Adding Simplified Chinese(UTF-8) translation for org-exp
  2012-03-18 17:58 ` David Maus
@ 2012-03-19  5:47   ` tumashu
  2012-03-20  1:36     ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: tumashu @ 2012-03-19  5:47 UTC (permalink / raw)
  To: emacs-orgmode

Today, I test Simplified Chinese(UTF-8) translation for org-exp.el again,
I find that "zh_CN"  is  used by *xml:lang* and *lang*
#+begin_example
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh_CN" xml:lang="zh_CN">
#+end_example


It should be:
#+begin_example
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
#+end_example
[[http://www.w3.org/International/articles/bcp47/]] 

--------------------------------------------------------
Changes in master
	Modified   lisp/org-exp.el
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index a2f0cfc..3f52be0 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -205,8 +205,8 @@ This option can also be set with the +OPTIONS line, e.g. \"-:nil\"."
     ("ru" "&#1040;&#1074;&#1090;&#1086;&#1088;"      "&#1044;&#1072;&#1090;&#1072;"  "&#1057;&#1086;&#1076;&#1077;&#1088;&#1078;&#1072;&#1085;&#1080;&#1077;" "&#1057;&#1085;&#1086;&#1089;&#1082;&#1080;")
     ("sv" "F&ouml;rfattare" "Datum" "Inneh&aring;ll" "Fotnoter")
     ;; Use numeric character entities for proper rendering of non-UTF8 documents
-    ;; ("zh_CN" "作者" "日期" "目录" "脚注")
-    ("zh_CN" "&#20316;&#32773;" "&#26085;&#26399;" "&#30446;&#24405;" "&#33050;&#27880;"))
+    ;; ("zh-CN" "作者" "日期" "目录" "脚注")
+    ("zh-CN" "&#20316;&#32773;" "&#26085;&#26399;" "&#30446;&#24405;" "&#33050;&#27880;"))
   "Terms used in export text, translated to different languages.
 Use the variable `org-export-default-language' to set the language,
 or use the +OPTION lines for a per-file setting."

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Adding Simplified Chinese(UTF-8) translation for org-exp
  2012-03-19  5:47   ` tumashu
@ 2012-03-20  1:36     ` Bastien
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2012-03-20  1:36 UTC (permalink / raw)
  To: tumashu; +Cc: emacs-orgmode

tumashu <tumashu@gmail.com> writes:

> It should be:
> #+begin_example
> <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
> #+end_example
> [[http://www.w3.org/International/articles/bcp47/]] 

Fixed in maint (included in 7.8.06) and master.

Thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-20  1:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-18  4:36 [PATCH] Adding Simplified Chinese(UTF-8) translation for org-exp tumashu
2012-03-18 17:58 ` David Maus
2012-03-19  5:47   ` tumashu
2012-03-20  1:36     ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).