Page 80 of 129

Drupal7の日本語化

Drupal7をレンタルサーバーなどで日本語化する場合、以下のようなエラーが出て日本語化ファイル(.po)をアップロードできない場合がある。

Home » Administration » Configuration » Regional and language » Translate interface » import

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access xxxxxxxxxxxxx in file_save_upload() (linea 1528 di /home/mysite/public_html/includes/file.inc).

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

代替法

1、http://localize.drupal.org/ から poファイルをダウンロードする。

2、/profiles/standard/translations へ poファイルを配置する。

3、Home » Administration » Configuration » Regional and language » Languages » Add から言語を選択し言語を追加する。

4、自動的に配置した poファイルを読み込みインポートされる。

5、デフォルトに設定する。

htaccess Control

アクセス制御したいディレクトリに下記記述の .htaccess ファイルをアップロード

■特定のリンクからのみアクセスを許可

– – – – – – – – – – – – – – – – – – – – – – – – – –

SetEnvIf REFERER "www.xxx.yyy" Ref1
Order Deny,Allow
Deny from all
Allow from env=Ref1

– – – – – – – – – – – – – – – – – – – – – – – – – –

※Ref1は任意

※複数可