2009-12-04 17:08
浏览 92


My current implementation, which is array based stores keys and values in a dictionary, example:

$arr = array(
    'message' => 'Paste a <a href="">flickr</a> URL below.',

I realize that it was probably a bad idea storing html inside of a string such as this, but if I'm using gettext then in my .mo/.po files how should I handle storing a similar string? Should I just store words, such as 'Paste a' and 'URL below' and 'flickr' separately?

图片转代码服务由CSDN问答提供 功能建议

我当前的实现,即基于数组的字典中存储键和值,例如: $ arr = array( 'message'=&gt;'粘贴&lt; a href =“”&gt; flickr&lt; / a&gt;以下网址。' , );

我意识到将html存储在像这样的字符串中可能是一个坏主意,但是如果我使用gettext那么 我的.mo / .po文件应该如何处理存储类似的字符串? 我应该分别存储单词,例如“粘贴一个”和“下面的URL”和“flickr”吗?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题