Warning: Table './drupal_fandt_old/accesslog' is marked as crashed and last (automatic?) repair failed query: SELECT uid, timestamp FROM accesslog WHERE (path = 'node/71' OR uid > 0) AND sid = 'c6e7ae604469e5d999aa0eeb06ec243b' ORDER BY timestamp DESC LIMIT 0, 1 in /var/www/akishige/fandt/includes/database.mysqli.inc on line 128
Drupal 7 がコンテクスト別翻訳をサポート! | FOREST & trees

Drupal 7 がコンテクスト別翻訳をサポート!

今までのバージョンの Drupal では,翻訳可能な原文が複数の場面で使われていても,その場面の違いを認識できませんでした。この問題が,Drupal 7 になって(さらなる努力は必要ですが)解決したようです。

たとえば,ユーザーを追加するページ (http://example.com/admin/user/user/create) でパスワード強度を判定していて,パスワードが十分に複雑な場合には“strong”という文字列が返されます。この場面にふさわしい訳語は,「強い」「強固」などでしょう。

同じ“strong”という文字列が別の箇所,たとえば Compose tips (入力の手引き http://example.com/filter/tips) でも,HTML の <strong> タグの機能について説明するために使用されているのです。この場面にふさわしい訳は,「強調」でしょう。

Drupal 6 までの翻訳可能文字列を識別する t() 関数では,この両者の違いを認識できませんでした。

しかし,ありがたいことに,Drupal 7 になって,t() 関数が context というパラメーターを受け付けるようになりました。

たとえば,前者の“strong”という文字列を,以下のように t() 関数で囲います。
t('Strong', array(), array('context' => 'password strength'))
また,後者の“strong”は,以下のようにします。
t('Strong', array(), array('context' => 'compose tips'))
(上記の context パラメーターは例です)

こうすることで,Drupal の翻訳インターフェースや l.d.o. で,それぞれの“strong”は同じ文字列ながら別々の翻訳対象オブジェクトとして認識されるようになりそうです。

ただ,Drupal コアそのものも,この context パラメーターをそれほど活用できておらず,l.d.o. 管理者の Gabor さんによると,上記の“strong”のように訳し分けが必要な文字列を翻訳者や翻訳版 Drupal のユーザーたちがレポートしてくれるのを期待しているとのことです。僕たち自身が使いやすい Drupal を作るためにも,そして他の言語を使う人たちの役に立つためにも,こうした二つ以上の場面で使われていて,いずれかの意味が不適切な翻訳を発見したら l.d.o. の issue queue までぜひお知らせください。もし英語での報告が心配な方は,私までご連絡いただければ私が翻訳して issue queue まで報告いたします。

Comments

dfddf

Interesting post. I Have Been wondering about this issue. so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks car finance

dfddf

Interesting post. I Have Been wondering about this issue. so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks car finance

after

after http://finalevil2009.blogspot.jp reading http://androidtabletgadgets.blogspot.jp apple iphone smartphone this article I am bejping http://nutritionsciences.blogspot.jp nokia specs price increasingly science, thanks http://keith503tw.blogspot.jp android game application for sharing http://earnineasy.blogspot.jp download game android your admin http://pinkberrylicious.blogspot.jp price specs android

Buy facebook likes cheap

This post is very impress for our business work..i am very happy too see your post.i thank you this posstt..  Real Facebook Likes UK

Obat Telinga Berdengung Alami

Obat Telinga Berdengung Alami  Informasi yang bermanfaat dan tentunya sangat menarik di baca terima kasih.

Obat Untuk Ibu Hamil Sakit Campak

good aftie

Obat Untuk Ibu Hamil Sakit Campak

good aftie

sdsds

dVery useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. mind

natalia villaveces porn

On the drive benefit home, Anna told me she’d had a first-rate time and my mates seemed aesthetic supah-sexy…which made me laugh a miniature. family fucking together http://www.mancinieassociati.it/index.php?option=com_k2&view=itemlist&ta...
http://winwebcomputer.com/index.php?option=com_k2&view=itemlist&task=use...
http://www.dorsatech.ir/component/k2/itemlist/user/24101
I couldn't knead myself, there was nothing rubbin' my cooter to vibrate me at all.

dssds

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. manual for teachers

dfdfdf

This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again. nshama launch

mikes apartment alissa

son impregnates mom http://www.gie.us.com/index.php?option=com_k2&view=itemlist&task=user&id...
http://courtoisieng.com/component/k2/itemlist/user/46930
http://www.prioritycarenursing.com/index.php?option=com_k2&view=itemlist...
That’s nice of you Linda said as she shook Bob’s palm, his eyes locked with hers and I could search for a glisten in his as he looked my wife over..

Never decide on long-term

Never decide on long-term issues are short-term emotional momentFriv 2 | Not Blocked At Schools | Yepi 2 | Unblocked Games

christmas

sdsdsd

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. best vpn services

Nice post. I learn something

Nice post. I learn something more challenging on different blogs everyday. It will always be stimulating to read content from other writers and practice a little something from their store. I’d prefer to use some with the content on my blog whether you don’t mind. Natually I’ll give you a link on your web blog. Thanks for sharing. Website Visit Visit Web Read More Information

Vashikaran

Good Blog Post THanks For Share It..@..i am loveing it..@

Vashikaran Mantra

This Is Awesome Blog..@@

Vashikaran Specialist

Nice BLog Post..@

fddfdfdf

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. oven cleaning London by Malvinas

Vashikaran Mantra

Good Post..@@

Vashikaran

khajimiya..>@

Black Magic Specialist

khajimiya nice post...@

selamat tahun baru perangsang

selamat tahun baru perangsang obat mohon maaf atas kesalahan kami obat perangsang manjur

sdfsdfsdf

That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally! games online free

sdssds

dI read your blog frequently and I just thought I’d say keep up the amazing work! piaggio insurance

Whoi, excellent, t wondered

Whoi, excellent, t wondered just how to cure icne. ind found your webstte by google, dtscovered todiy t'm i ltttle obvtous i greit deil. t’ve ilso idded RSS ind sive your webstte. keep us updited. See more

Therefore for the tune to

Therefore for the tune to encounter your webstte thit ts excellent, your stte provtdes i good deil of fun. to me ill the best ustng the stte. See more

Happy New Years

Happy New Years

yang bisa membantu anda untuk

yang bisa membantu anda untuk mendapatkan selai nanas yang berkualitas. jasa konstruksi gudang konstruksi baja wf jasa konstruksi

web stte ts truly useful t

web stte ts truly useful t ilso enjoy the look, tt's tncredtble!. t've sived tt is well is tnclude your RSS feeds ilthough t don’t possess the pertod rtght now to completely eximtne your webstte. t'll be tn two or eich diy. thinks to getttng i wonderful webstte. check it out

Cytotec Asli

Thank you for sharing in this articleI can learn a lot and could also be a referenceI hope to read the next your article updates  [-]<a href="http://www.klinikkesehatan.com/">Jual Obat Aborsi Asli Ampuh Aman 100% Tuntas Dan Bergaransi</a>[-]<a href="http://www.peluntur.com/">JUAL OBAT ABORSI AMPUH MANJUR ASLI TUNTAS</a>[-]<a href="http://www.agencytotec.com/">Jual Obat Aborsi Cytotec Asli Ampuh 100% Tuntas Dan Aman</a>[-]<a href="http://www.asliampuh.com/">Jual Obat Aborsi Asli Ampuh Aman 100% Tuntas Dan Bergaransi</a>

nithi

Dailymotion video downloader

Try <a href="http://dailymotionvideodownloaders.com/">Dailymotion video
downloader</a> to download videos from dailymotion.

sdsd

It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing. Orkin Pest Control Prices

ABDWAP

Therefore for the tune to

Therefore for the tune to encounter your website that is excellent, your site provides a good deal of fun. to me All the best using the site.click for info

testbankcampus

This content is very useful i learned from here many important things and i read daily this blog.Thank you very much for writting such a post.

sdssdsd

Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. filip maertens

cara mencegah alergi pada ibu menyusui

<a href="http://obattradisional.co/">obat tradisional berkualitas</a>
<a href="http://www.obatpenurunpanas.com/">obat penurun panas</a>
<a href="http://obatherbalmultikhasiat.com/obat-herbal-sariawan-lambung/">obat herbal sariawan lambung</a>
<a href="http://jenispenyakit.obatkistamanjur.com/tips-untuk-menjaga-kesehatan-rahim-wanita/">tips untuk menjaga kesehatan rahim wanita</a>
<a href="http://obatherbalmultikhasiat.com/obat-herbal-ruam-popok-pada-bayi/">obat herbal ruam popok pada bayi</a>

sdssd

I have recently started a blog. the info you provide on this site has helped me greatly. Thanks for all of your time & work. heroku seo

Reply

Cara menghilangkan benjolan di leher dengan obat herbal Ace maxs merupakan obat herbal multi-khasiat yang terbuat dari perpaduan kulit manggis dan daun sirsak dan memiliki sejuta manfaat serta khasiat yang luar biasa bagi kesehatan. Cara menghilangkan benjolan di leher dengan obat herbal juga cukup efektif karena Ace Maxs mengandung zat xanthones yang sangat tinggi, xanthones merupakan zat yang mampu menjelajah seluruh tubuh, menetralkakn radikal bebas, mematikan bakteri dan sel jahat lainnya secara alami dan aman. Cara menghilangkan benjolan di leher perlu anda ketahui bahwa zat xanthones ini bersifat antibakterial, antijamur, antivirus, antiparasit serta antikanker sehingga mampu mengatasi penyakit kanker dan bagus untuk di jadikan sebagai Cara menghilangkan benjolan di leher

Abses Kulit

Thank you very much for the information pleased to visit. Obat Abses Kulit | Obat Kista Bartholin | Cara Mengobati Batu Empedu Tanpa Operasi

cinta adalah misteri

こうすることで,Drupal の翻訳インターフェースや l.d.o. で,それぞれの“strong”は同じ文字列ながら別々の翻訳対象オブジェクトとして認識されるようになりそうです。

The djancukers

Thank you for sharing in this article

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.