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

が必要な時間計測、カレンダー、アラームといった機能が初期の

が必要な時間計測、カレンダー、アラームといった機能が初期の段階ARMANI EXCHANGE 腕時計 AX2103から備わっていた。そのため各種センサー類を取り付けることによって、従来の時計とは異なる機能(気温、気圧測定、電子コンパスなど)が付け加えられた。

Learn more about a unique

Learn more about a unique franchise opportunity and sports marketing jobs. People today who are avid about sports, just like you, are making a career of combining their interest with sales and marketing principles and their desire to have a business of their own. sport industry jobs

Thanks to

goldenslotThanks to the information provided in this too. It is Me too

If you are looking for a fast

If you are looking for a fast way to become a better football player, here are my suggestions and tips. The first thing I suggest you do is write down your goals. Remember when making your goals, don't make them too broad. better football

Thanks for sharing nice

Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. Apple IT Support

very interesting post.this is

very interesting post.this is my first time visit here.i found so many interesting stuff in your blog especially its discussion..thanks for the post!
quinoa in India

Its a great pleasure reading

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. Salt Lake City SEO

Thanks for posting this info.

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. buy quality backlinks

Thanks for this great post, i

Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future. cogniflex review

situs website alat fitness

situs website alat fitness adalah seperti tempat penyimpanan produk - produk oxonemurah, Jika anda membutuhkan alat - alat kesehatan dan alat kecantikan anda bisa mengunjungi Alat terapi pembelian produk tersebut grosir dan juga satuan, jika anda mencari lokasi toko online dari aksesoris bayi anda bisa langsung mengunjungi websitenya di perlengkapan bayi diwebsite tersebut banyak jual perlengkapan bayi dengan harga yang super murah . jika anda ingin membeli cetakan kue secara grosir dan satuan, anda bisa mengunjungi website cetakan kue disana menjual aneka jenis cetakan kue. Jika anda sering berpergian jarak jauh, sebaiknya anda menggunakan matras mobil karena anda bisa beristirahat dengan nyaman dan tenang.Ello harus tau ya, toko - toko yang jual murah semua produk produknya, memang menjadi pusat perhatian orang banyak, karena mereka menginginkan produk yang di jual murah meriah dan serba lengkap ditoko blogiyan tersebut juga ada beberapa alat pel super mop di jualan murah dengan berbagai tipe yang bisa anda beli dengan murah nihsetelah membeli produk - produk di toko online kami, banyak orang yang bilang wah murah ya, bukan hanya setelah, tetapi pada saat belanja, mereka juga sering menyebut wah murah nih atau ih murah murah ya. store adalah website blogsaya yang menjual produk - produk secara grosir, atau biasa orang menyebutnya dengan murah gan . ada alat transportasi baru yang sedang booming di indonesia, alat ini adalah smart balance wheel dan sudah banyak digunakan oleh artis2 indonesia.

Cool website buddy I am gona

Cool website buddy I am gona suggest this to all my list of contacts.mykonos villas

Your articles don't displace

Your articles don't displace around the bushes correct t to the part.carrageenan

Your Woman was not bothered

Your Woman was not bothered by simply hunger, and the girl or even he had a lot more energy.Visit emily's blog

Thanks to

goldenslotThanks to the information provided in this too. It is Me too

Extraordinary occupation for

Extraordinary occupation for distributed such an advantageous site. Your web log isn't just helpful yet it is moreover truly inventive as well. There have a tendency to be relatively few individuals who can unquestionably compose not all that straightforward posts that creatively. Proceed with the decent composition healthy living

I am very pleased with your

I am very pleased with your point of view and understanding esa letter.

Airborne debris along with

Airborne debris along with wash along squeezes which has a soft dried up wash cloth.more information

In so doing we get involved

In so doing we get involved in the struggling and loss of duration of Christ ShootScope. This objective is who we are.

Someone ran loaded a sponge

Someone ran loaded a sponge or cloth with bottles therapy ابراج 2017, put it on employees, and provided it to Christ to consume.

I truly value the sort of

I truly value the sort of subjects you post here. A debt of gratitude is in order for sharing us an extraordinary data that is really useful. Great day! pistes

Thanks to

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

The information

 goldenslotThanks to the information provided in this too. It is Me too  

If you drive in the western

If you drive in the western part of the country especially, there's no other way to do that.outdoor car cover

I am very satisfied with your

I am very satisfied with your perspective and understanding CC Drainage.

Precisely, you're

Precisely, you're exceptionally sort of us about remark!. pamper mobile casino

I truly like your thoughts on

I truly like your thoughts on the issue. I now have an unmistakable thought on what this matter is about.. age well

Just saying thanks will not

Just saying thanks will not just be adequate see post, for the fantastic c clarity in your composing.

hello there was simply

hello there was simply checking whether you minded a remark. i like your site and the thme you picked is super. I will be back. health advice

The information

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

Your skills while showing

Your skills while showing that you’re the kind of person they might also want to have lunch with.do my essay cheap

The groups not reading your

The groups not reading your blogs are missing out a lot of caliber material.Pokemon GO generator

The information

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

This is a splendid online

This is a splendid online journal! I'm extremely content with the remarks!.. 7 Easy Ways to Make Your Home Feel More Serene

Thanks to

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

Good focuses you composed

Good focuses you composed here..Great stuff...I think you've made some really fascinating points.Keep up the great work. Low Obl

Pit bull is the common name

Pit bull is the common name for a type of dog. Formal breeds often considered in North America to be of the pit bull type include the American Pit Bull Terrier, American Staffordshire Terrier, American Bully, and Staffordshire Bull Terrier Fotos de Pastor Alemao

Is it alright to post some

Is it alright to post some portion of this on my site essentially present a hyperlink on this site page? look your best

This is my very first time i

This is my very first time i go here. I discovered so many exciting things in your weblog especially its conversation. From the a lot of feedback on your content. Perhaps I am not the only one having all the entertainment here! keep up the best work Amy Evans .

I discovered so many exciting

I discovered so many exciting things in your weblog especially its conversation Cooking Fever Cheats. From the a lot of feedback on your content.

Thanks to

 goldenslotThanks to the information provided in this too. It is Me too  

Analytics shows they are

Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”.negative avant loan reviews

much obliged to you for an

much obliged to you for an incredible post. fahrrad navi

I am going to bookmark your

I am going to bookmark your web site and maintain checking for brand new information.pay per install network

A debt of gratitude is in

A debt of gratitude is in order for sharing the post.. folks are universes best individual in every existences of individual..they need or must succeed to maintain needs of the gang. aging

The quality of information

The quality of information that you are providing is simply marvelous. inez joy

Your articles don&rsquo;t

Your articles don’t beat around the bushes exact t to the point.carcoverstore

 website  click here  to

best blog  visit  download

Thanks

goldenslotThanks to the information provided in this too. It is Me too  

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.