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

I was surfing net and

I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. click here

Someone Sometimes with visits

Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! Marrakech tours

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. www.stkitsbottlingcompany.com

I have a hard time describing

I have a hard time describing my thoughts on content, but I really felt I should here. Your article is really great. I like the way you wrote this information. Bayanihan Flats developer

I am very enjoyed for this

I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. best bed frame brands

I am very enjoyed for this

I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. find more

I am glad you take pride in

I am glad you take pride in what you write. This makes you stand way out from many other writers that push poorly written content. see here

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. Bryant Digital

Wow what a Great Information

Wow what a Great Information about World Day its very nice informative post. thanks for the post. Tourist Attractions

It&rsquo;s appropriate time

It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it! pieczatki

An fascinating discussion is

An fascinating discussion is value comment. I think that it is best to write extra on this matter, it won’t be a taboo topic however generally people are not enough to talk on such topics. To the next. Cheers Industrie

This is really a nice and

This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it superhacki

You have a good point here!I

You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!! cheap gaming laptop

The post is written in very a

The post is written in very a good manner and it contains many useful information for me. Videomängud

I admit, I have not been on

I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. professionals. I thank you to help making people more aware of possible issues. Videomängud

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. pokemon go generator

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 aufwachsen

Super-Duper site! I am Loving

Super-Duper site! I am Loving it!! Will come back again, Im taking your feed also, Thanks. learn here

Thanks For sharing this

Thanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. best laptop for music production and recording

Interesting topic for a blog.

Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon. dlf magnolias gurgaon

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. http://abbeyfieldsaskatoon.ca/

Thanks for the nice blog. It

Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. http://www.starwintech.com/

I am very enjoyed for this

I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. http://horseservices.ca/

I have read a few of the

I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites blog site list and will be checking back soon. Please check out my site as well and let me know what you think. Driving Lessons

I have recently started a

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

Thank you for taking the time

Thank you for taking the time to publish this information very useful! stanford pelage

I agree

This article is great! Why dont you check out: http://www,austinproasphalt.comThanks!

We are a London based

We are a London based company. Our services include, surveillance, car tracking, background reports and investigations.  tracker for hire

I appreciate everything you

I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. C7 Creative

I wanted to thank you for

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. floor protection

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.