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 = '87e47ae3931ac9cdcd5b5dfbe3d44c56' 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

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  

Advises in areas such as real

Advises in areas such as real estate, estate planning, financial planning and in-home care.trading insurance

This article was composed by

This article was composed by a genuine deduction author. I concur a hefty portion of the with the strong focuses made by the author. I'll be back. aging

Awesome review, I am a major

Awesome review, I am a major adherent to remarking on online journals to illuminate the website scholars realize that they've added something beneficial to the internet!.. skin health

Positive site, where did u

Positive site, where did u concoct the data on this posting? I'm satisfied I found it however, sick be returning soon to figure out what extra posts you incorporate. fitness tips

Thanks to

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

I can&rsquo;t think about

I can’t think about focusing long enough to research; much less make this kind of material. You’ve defeated yourself with these elements. This is excellent material Georgia Rice.

I am hoping the same best

I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! important source

I like all information that

I like all information that you provide in your articles. mikrowelle

Thanks to

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

nice post, keep up with this

nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this! Stabmixer

It's suitable time to make a

It's suitable time to make a few arrangements for the future and the time has come to be glad. I have perused this post and on the off chance that I might I be able to wish to propose you few intriguing things or exhortation. Maybe you could compose next articles alluding to this article. I craving to peruse considerably more things about it! look younger

Excellent info! Not long ago

Excellent info! Not long ago i came across your weblog and have been studying along. I believed I would depart my first opinion. I don’t know what to say except that I have Gamer.hr.

The information

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

I continuously livelihood on

I continuously livelihood on upcoming to your parcel again retributory in containerful you have posted new list.car cover

Thanks to

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

Keep it up; keep posting more

Keep it up; keep posting more n more n more. car covers

The information

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

Goodness, cool post. I'd like

Goodness, cool post. I'd like to compose like this as well – requiring significant investment and genuine diligent work to make an incredible article… yet I put things off an excessive amount of and never appear to begin. Much appreciated however.  elderly care in passaic

In the present scenario, when

In the present scenario, when the world is moving at a break neck speed, running with the tide is the most suitable catch word for the businesses as well. The technological advancements and various issues that has been inflicted upon the world are having a undeniable impact on the various industries and enterprises. smart grid business net work

Much obliged to you so much

Much obliged to you so much Love your site.. Desktop PC Test

Your perspectives are much

Your perspectives are much like my own concerning this subject.health blogs

I wonder why other

I wonder why other professionals don’t notice your website much m glad I found this.Click here

Or even you will end up

Or even you will end up surprised from the goods that exist with your retailer.lifestyle blogs

These facilities provide

These facilities provide housing solutions and special need care for the elderly people and those who are physically disabled or have accessible problems. living-business

Nice share of information

Nice share of information here. I really find this information really helpful for me. Thanks a lot, dude, for putting up this vital information on the internet for everybody to use. showbox

Nice share of information

Nice share of information here. I really find this information really helpful for me. Thanks a lot, dude, for putting up this vital information on the internet for everybody to use. showbox

I've been striving for some

I've been striving for some time however I never appear to arrive! Welcome it.cosmetics europe

Pleasant to peruse your

Pleasant to peruse your article! I am anticipating sharing your enterprises and encounters. Check your essay

fact that they resemble

fact that they resemble melons (which might not be evident from the images) - they do not necessarily contain melon..high pr ! high trust flow

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.iPhone repair nottingham

Moreover, you will be happy

Moreover, you will be happy to know that this comparatively cheaper steroid is far better than any other anabolic steroid and helps in attaining the greater results when applied in steroid cycle.anabolic steroids online

I continuously livelihood on

I continuously livelihood on upcoming to your parcel again retributory in containerful you have posted new list. Max

English have a better

English have a better understanding of time thanks to the English expressions time use.debt management plans

Thanks to

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

Are you a backpacker looking

Are you a backpacker looking out to take a year out traveling? Need to find an insurance cover such as a gap travel insurance, take your online route. travel to help

I appreciate you and hopping

I appreciate you and hopping for some more informative posts. happy new year 2016 new year 2016 happy new year 2016 images feliz año nuevo 2016

This post on the cross

This post on the cross country race and results proved to be a really good one. I am interested in athletics and this post helped me a lot to know more on the cross country race. Keep up the good work guys! how to get more instagram followers ! how to get likes on instagram

if you are from any british

if you are from any british university and looking for expert services for assignments. Do not waste your time and contact our team immediately as we are booking our clients on advance. John Crestani Super Affiliate System Bonus

The potentiality on rolling

The potentiality on rolling beyond this allow to the next month be required to not be donn‚e a thought.kopejki.com

I dispatched your articles

I dispatched your articles links to all my contacts and they all mate it including me.Multimeter Pro

Thanks to

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.