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 = '7cdbe4558dccaa621664cc607b3d8380' 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

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

が必要な時間計測、カレンダー、アラームといった機能が初期の段階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

Thanks so much for sharing

Thanks so much for sharing this awesome info! I am looking forward to see more posts by you.My blog: Investasi Terpercaya

Cost efficient moving

Cost efficient moving postcards announcements are therefore very beneficial for you. cheap moving postcard announcements

Cheap business letterhead

Cheap business letterhead format is a vital part of a marketing campaign. The letterheads are the uppermost section of a stationery piece. It consists of your company logo, phone number and other such useful details. cheap business letterhead format
 

Great site! I genuinely

Great site! I genuinely cherish how it is simple on my eyes it is. I am considering how I may be told at whatever point another post has been made. I have subscribed to your RSS which may do the trap? Have an extraordinary day! elderly care in north suburbs

Thanks for sharing the info,

Thanks for sharing the info, keep up the good work going.... I really enjoyed exploring your site. good resource... <principal balance

This article gives the light

This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.new futua launch

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 Plumber in Marietta, Ga

Hi! Thanks for the great

Hi! Thanks for the great information you have provided! You have touched on crucuial points! Depression

Thanks for sharing this

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.. new futura developer

I am happy to find your

I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. new futura CDL

This was a really great

This was a really great contest and hopefully I can attend the next one. It was alot of fun and I really enjoyed myself.. gilbertway.net

I found your this post while

I found your this post while searching for information about blog-related research ... It's a good post .. keep posting and updating information. click this site

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 бебешки спални комплекти

Great job for publishing such

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing new futura condo floor plan

This was a really great

This was a really great contest and hopefully I can attend the next one. It was alot of fun and I really enjoyed myself.. Discount Sale

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.   

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.