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 = '9a88c5d21b1f6ef8f79eae11c4afd0fc' 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

like this post

Thanks for this great post.great work Info Titan reviewInfo Titan reviewAvatar Genie Pro Review

nice blog post , i like

jasa desain

Thanks for sharing , nice post
Kami bergerak di bidang jasa desain rumah yang beekualitas, jika anda menginginkan pembuatan desain rumah layanan jasa arsitek kami siap memberikan hasil desain rumah yang berkualitas, banyak pilihan hasil karya kami seperti desain rumah minimalis modern 2 lantai yang bisa anda dapatkan dengan harga terjangkau

The information

goldenslot The information you provide is information that is useful to me, not ever.  

Thanks a lot for sharing. You have done a brilliant job. Your ar

Thanks a lot for sharing. You have done a brilliant job. Your article is truly relevant to my study at this moment, and I am really happy I discovered your website. 192.168.l.254

re

Thanks for sharing, nice post prestamos rapidos

The dynamite a portion of

The dynamite a portion of beginning a business on the web is that it as a rule does not cost you dearly.clash royale hack tool

Another incredible truth is

Another incredible truth is that you can begin with as meager as an area name and a private facilitating account keeping in mind the end goal to have your site live on the web. scary maze game 5

Beyond any doubt you can

Beyond any doubt you can begin for nothing by putting your materials on other individuals organizations, yet since it is not a side interest what you are working around $20 would do awesome just to begin. geometry dash meltdown download

aanrechtblad

Useful information shared..Iam very happy to read this article..thanks for giving us nice info.Fantastic walk-through. I appreciate this post. 

great post ! thanks for share

great post ! thanks for share it ! realy i like you blog !العاب تلبيس

Wonderful article, thanks for

Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here. Apple IT Support

This post is really giving me

This post is really giving me exciting information. There is something new which is related to my hobby. This post is considerable use for me. Thanks for sharing it. frizz - fliv - stardoll game  fr9 juegos - 9games - io games  frip - priv - frif

bokep

Video Bokep Hello very nice website!! Guy ,Excellent, Blog Video Bokep Superb ..I will bookmark your site and take the feeds also? I am glad to search out a lot of useful info here in the post, Bokep Mesum we’d like work out more strategies on this regard, thank you for sharing Video Bokep Indo ,googd your blogs Keluaran Togel

Professional Packers Movers Pvt Ltd Bangalore

Professional Packers and Movers Pvt. Ltd. is an established based packers and Movers Company that specializes in offering extremely quality oriented packing, moving and transportation services. Professional Packers and Movers is a professional and reputable moving company offering cost-effective services of packers & movers in India.http://www.professionalpackersindia.com/packers-movers-bangalore.html

vimax

I like design site this
visit also my webhttp://fanfarma.com/

I am just desperately seeking

I am just desperately seeking information on any website so that you can learn to make a website which is really strange, really great powerbank xiaomi slim ! !!

An informative one

Obat Kejang Kejang

When I visit this site I see

When I visit this site I see this site is popular and a lot of traffic. I want to learn to make my site as it is. obat amandel | obat cacar air | obat batu ginjal

Obat Mata Minus Tradisional

Regarding Site

Wow it's a really good site, respect..
 

waiting for next article, so

waiting for next article, so interesting.GEJALA HERNIA

fdw

waiting for next article, so interesting.GEJALA HERNIA

obat penyubur sperma

info

Pernah marak di sekian banyak milis lokal menyatakan bahwa bukti buah sirsak yg mempunyai khasiat anti-kanker tengah ditutup-tutupin oleh perusahaan farmasi skala dunia dgn motif profit. <a href="http://tell-talethiele.blogspot.com/2016/09/bunuh-sel-kanker-dengan-konsumsi.html">Bunuh Sel Kanker Dengan Konsumsi Rebusan Daun Sirsak</a>
lifestyle penduduk di zaman mutakhir yg makin sibuk menciptakan kesehatan badan jadi aspek yg tidak jarang diabaikan. Padahal, tidak dengan badan yg sehat kegiatan sehari-hari bakal sukar utk dikerjakan. <a href="http://orangeprimperfect.blogspot.com/2016/09/khasiat-sarang-semut-papua-untuk.html">Khasiat Sarang Semut Papua Untuk Menyembuhkan Kanker</a>
Kalau Kamu telah dikatakan positif mengidap kanker payudara, rata rata pengobatan yg bakal dilakukan oleh dokter meliputi operasi, kemoterapi atau radiasi. <a href="http://tell-talehalloweenparty.blogspot.com/2016/09/mengobati-kanker-payudara-dengan-jus.html">Mengobati Kanker Payudara Dengan Jus Kulit Buah Manggis</a>
Wawasan menyangkut asupan makanan apa yg masuk ke dalam badan Kamu tentu jadi salah satu perihal yg amat mutlak, terutama bagi Kamu yg sekarang ini menderita penyakit seperti kanker darah. <a href="http://ppgmedantimur.blogspot.com/2016/08/makanan-sehat-untuk-penderita-kanker.html">Makanan Sehat Untuk Penderita Kanker Darah Leukimia</a>
lifestyle tak sehat perihal risiko masih nomer satu terjadinya kanker kolorektal (usus agung) di Indonesia. Utk itu, tiap-tiap orang meminta memperhatikan tiap-tiap makanan & minuman yg dimakan dalam kehidupan sehari-hari. <a href="http://nejennifer1974.blogspot.com/2016/08/makanan-yang-meningkatkan-risiko-kanker.html">Makanan Yang Meningkatkan Risiko Kanker Usus Besar</a>

info

http://tell-talethiele.blogspot.com/2016/09/bunuh-sel-kanker-dengan-kons... Bunuh Sel Kanker Dengan Konsumsi Rebusan Daun Sirsak
http://orangeprimperfect.blogspot.com/2016/09/khasiat-sarang-semut-papua... Khasiat Sarang Semut Papua Untuk Menyembuhkan Kanker
http://tell-talehalloweenparty.blogspot.com/2016/09/mengobati-kanker-pay... Mengobati Kanker Payudara Dengan Jus Kulit Buah Manggis
http://ppgmedantimur.blogspot.com/2016/08/makanan-sehat-untuk-penderita-... Makanan Sehat Untuk Penderita Kanker Darah Leukimia
http://nejennifer1974.blogspot.com/2016/08/makanan-yang-meningkatkan-ris... Makanan Yang Meningkatkan Risiko Kanker Usus Besar

You should

You should take part in a contest for one of the best blogs on the web. I will recommend this site! Berita Bola Prediksi Bola Information

probably second to the top of

probably second to the top of the list of coffee machines of this type. Ultimately, it is an affordable unit that you simply cannot go wrong with in your kitchen. www.antonscrazydeals.com/find-different-kinds-of-food-centers-in-nearby-locations-easily

When I originally

When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks! Doaib.com Ccglim.com Rimwa.org

I am very pleased to be able

I am very pleased to be able to visit this website , Because the news is very interesting to see and thanks for providing this website to say joined commented 192.168.1.1|192.168.1.1|192.168.1.1|192.168.1.1

body of work from delicate

body of work from delicate watercolors done on her voyages East to bold oils influenced by time spent in Europe, her work mingles experiences in Asia, EuropeIf we can only encounter each other rather than stay with each other 192.168.1.1|192.168.1.1|192.168.1.1|192.168.1.1

Would you be interested in

Would you be interested in exchanging links? Website Information Visit

thank for to information,

thank for to information, thanks to your article. Thank you, I've recently been searching for information about this topic for a while and yours is the greatest I have found out so far. berikut ini adalah artikel yang membahas tentang Penyebab Sperma Encer Dan Cara Mengobatinya ||

very nice what you say. said,

very nice what you say. said, polished and elegant very, very good. To view website you is very nice, definitely take the time to make a success like this. obat spondylosis lumbalis obat flu untuk ibu hamil dan menyusui obat sesak nafas tradisional

Please continue this great

Please continue this great work and I look forward to more of your awesome blog posts. inboundlinkstoolstest.party

I was reading your article

I was reading your article and wondered if you had considered creating an ebook on this subject. Your writing would sell it fast. You have a lot of writing talent. sports supplements

Excellent .. Amazing ..

Excellent .. Amazing .. I’ll bookmark your blog and take the feeds also…I’m happy to find so many useful info here in the post. we need work out more techniques in this regard. thanks for sharing. New Yard Truck Sales

sdsdsd

it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity.. agen judi bola

sdsdsd

it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity.. agen judi bola

All the contents you

All the contents you mentioned in post is too good and can be very useful. I will keep it in mind. thanks for sharing the information keep updating. looking forward for more posts.Thanks web hosting india

dfddf

Fantastic blog! Do you have any tips and hints for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed .. Any suggestions? Many thanks! moped insurance uk

Well Post, I am a big

Well Post, I am a big believer in posting comments on sites to let the blog authors know that they have added  something beneficial to the world wide web! Fantastic Beasts and Where to Find Them Coat - Moviesjacket.com

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.