如何用 qTranslate-X 翻译 NextGen 画廊标题?

How to translate the NextGen gallery title with qTranslate-X?

我正在使用 NextGen Gallery 构建一个新的 Worpress 站点。我需要它是多语言的,所以我使用 qTranslate-X 插件进行翻译。但我想不通,如何翻译 NextGen 画廊。

我检查了 qTranslate 配置中的选项 'ngg_album'、'ngg_gallery'、'ngg_pictures'。但是我找不到哪里可以翻译这些项目。

我错过了什么吗?有人可以帮我翻译 NextGen 画廊吗?

提前致谢!

我尝试完成此操作的方法是:

1.) 创建自定义 NextGen 模板。根据documentation,您需要:

  • Make a copy of the file called gallery.php located here: /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view

  • Make a new folder called nggallery in your theme folder: /wp-content/themes/[theme you have activated]/nggallery

  • Place your copy of the file called gallery.php here

  • Rename "gallery.php" to "gallery-templatename.php"

  • To use, use this shortcode: [ nggallery id=1 template=templatename ]

2.) 现在在gallery-templatename.php模板中,修改

echo $gallery->slideshow_link_text_e($gallery->slideshow_link_text).

3.) 剩下的就是在图库标题中使用 qTranslate 语言标签,如 [:en]English text[:de]German Text。有关这些语言标签的更多信息,请查看 qTranslate documentation.