【问题标题】:Text translation from the database by codeigniter由codeigniter从数据库中翻译文本
【发布时间】:2016-09-06 12:57:00
【问题描述】:

使用带有语言的 Codeigniter 库,在语言文件夹中:英语、法语等。

我想在数据库中使用:

idproduct | ProductName | ProductNameFR | ProductNameDE

根据选择的语言来取表。

我尝试这样做: /application/language/English/translateen.php

$lang ['ProductName'] = '$info['.'LocatieAdresa'.']; //but not work

还有哪些其他方法可以翻译数据库中的数据?

【问题讨论】:

    标签: php codeigniter


    【解决方案1】:

    $lang ['ProductName'] = $info['LocatieAdresa'];

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-21
      • 1970-01-01
      • 2013-08-07
      • 1970-01-01
      相关资源
      最近更新 更多