Skip to content

Commit

Permalink
M18N of web pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hayamiz committed Dec 14, 2009
1 parent f99c34e commit e282678
Show file tree
Hide file tree
Showing 8 changed files with 167 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,2 +1,4 @@
/doc/web/*.html
/doc/web/*.html.ja
/doc/web/upload.bat
/doc/web/twmode.pot
7 changes: 7 additions & 0 deletions Makefile
@@ -0,0 +1,7 @@

.PHONY: all update-po

all:

update-po:
$(MAKE) -C doc update-po
11 changes: 11 additions & 0 deletions doc/Makefile
@@ -0,0 +1,11 @@

.PHONY: all update-po

all:

update-po:
$(MAKE) -C web update-po
$(MAKE) -C manual update-po



5 changes: 5 additions & 0 deletions doc/web/.htaccess
@@ -0,0 +1,5 @@

AddLanguage ja .ja

LanguagePriority ja en

40 changes: 35 additions & 5 deletions doc/web/Makefile
@@ -1,14 +1,16 @@

RM ?= rm -f
PUBLISH := ./publish.rb

HTML_DOCS := index.html
HTML_ASSETS := style.css images
CATALOGS := ja.po


.PHONY: all clean upload
.PHONY: all clean upload update-po publish

.SUFFIXES: .text .html

all: $(HTML_DOCS)
all: publish

.text.html: $(PUBLISH)
$(PUBLISH) $<
Expand All @@ -17,8 +19,36 @@ upload: upload.bat
@(! [ -z "$${SF_USERNAME}" ] || (echo "Environmental variable 'SF_USERNAME', which is a username of sf.net, is required."; false))
sftp -b $< $${SF_USERNAME},twmode@web.sourceforge.net

upload.bat: $(HTML_DOCS) Makefile
(echo "cd htdocs"; echo "-mkdir images"; ls *.html *.css images/*.jpg images/*.gif images/*.png | while read file; do echo "put $${file} $${file}"; done) > $@
upload.bat: $(HTML_DOCS) Makefile publish
files=$$(find -name "*.html"; \
find -name "*.html.??"; \
find -name ".htaccess"; \
find -name "*.css"; \
find -name "*.png"; \
find -name "*.jpg"); \
dirs=$$(echo $$files|xargs -n1 dirname|sort|uniq); \
(echo "cd htdocs"; \
echo $$dirs | xargs -n 1 echo "-mkdir"; \
for file in $$files; do echo "put $${file} $${file}"; done) > $@

twmode.pot: $(HTML_DOCS)
xml2po -k -o $@ $(HTML_DOCS)
for catalog in $(CATALOGS); do \
[ -f $$catalog ] || cp $@ $$catalog; \
done

update-po: twmode.pot Makefile
for catalog in $(CATALOGS); do \
xml2po -k -u $$catalog $(HTML_DOCS); \
done

publish: $(HTML_DOCS) $(CATALOGS) update-po
for catalog in $(CATALOGS); do \
lang=$$(echo $$catalog|sed 's/.po$$//'); \
for html in $(HTML_DOCS); do \
xml2po -k -p $$catalog -l $$lang $$html > $$html.$$lang; \
done; \
done

clean:
$(RM) *.html upload.bat
Binary file added doc/web/images/lang-en.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/web/images/lang-ja.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions doc/web/ja.po
@@ -0,0 +1,107 @@
msgid ""
msgstr ""
"Project-Id-Version: twittering-mode HEAD\n"
"POT-Creation-Date: 2009-12-14 11:43+0900\n"
"PO-Revision-Date: 2009-12-14 11:43+0900\n"
"Last-Translator: Yuto Hayamizu <y.hayamizu@gmail.com>\n"
"Language-Team: Japanese\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: index.html:6(title)
msgid "Twittering-mode"
msgstr "Twittering-mode"

#: index.html:37(p)
msgid ""
"Twittering-mode is a major mode for Twitter. It enables you to check "
"timelines, tweet, mark posts as favorites and so on."
msgstr ""
"twittering-modeは、EmacsでTwitterをするためのメジャーモードです。タイムライン"
"のチェック、投稿、お気に入りなど様々なTwitterの機能をEmacsから使うことができ"
"ます。"

#: index.html:40(h2)
msgid "Download"
msgstr "Download"

#: index.html:43(a)
msgid "twittering-mode.el"
msgstr "twittering-mode.el"

#: index.html:47(h2)
msgid "Documentation"
msgstr "ドキュメント"

#: index.html:50(li)
msgid "will be available soon"
msgstr "しばしお待ちを"

#: index.html:54(h2)
msgid "Contribute"
msgstr "プロジェクトに参加"

#: index.html:56(h3)
msgid "Repository"
msgstr "レポジトリ"

#: index.html:58(p)
msgid "You can clone the git repository:"
msgstr "次のコマンドを実行することで、gitレポジトリをcloneできます:"

#: index.html:60(code)
msgid "git clone git://github.com/hayamiz/twittering-mode.git"
msgstr "git clone git://github.com/hayamiz/twittering-mode.git"

#: index.html:63(a)
msgid "GitHub"
msgstr "GitHub"

#: index.html:63(p)
msgid "Or fork on <placeholder-1></placeholder-1>"
msgstr "または<placeholder-1></placeholder-1>でforkしてください。"

#: index.html:65(a)
msgid "Developer's guideline"
msgstr "開発の手引き"

#: index.html:65(p)
msgid ""
"See <placeholder-1></placeholder-1>(will be available soon) for more "
"information."
msgstr ""
"詳しい情報については<placeholder-1></placeholder-1>(しばしお待ちを)を参照して"
"ください。"

#: index.html:67(h2)
msgid "See also"
msgstr "See also"

#: index.html:70(a)
msgid "EmacsWiki: TwitteringMode"
msgstr "EmacsWiki: TwitteringMode"

#: index.html:79(a)
msgid "Free CSS Templates"
msgstr "Free CSS Templates"

#: index.html:79(a)
msgid "Chapter 13 Bankruptcy"
msgstr "Chapter 13 Bankruptcy"

#: index.html:78(div)
msgid ""
"Designed by <placeholder-1></placeholder-1>, Thanks to <placeholder-2></"
"placeholder-2>"
msgstr ""
"Designed by <placeholder-1></placeholder-1>, Thanks to <placeholder-2></"
"placeholder-2>"

#. Put one translator per line, in the form of NAME <EMAIL>, YEAR1, YEAR2.
#: index.html:0(None)
msgid "translator-credits"
msgstr "translator-credits"

#~ msgid "GitHub repository"
#~ msgstr "GitHubレポジトリ"

0 comments on commit e282678

Please sign in to comment.