求助:需要一份 /etc/default/locate 文件

此前因为看到一个名为 Nathive 的自由软件新项目,所以我顺便为其做了简体中文本地化。今天忽然收到了作者的来信,要求我为他提供一份 /etc/default/locate 文件,以便为 Nathive 做自动化的语言检测。然而,当我检视我的系统时,在 /etc/default 目录中却无法找到 locate 文件。所以,我想在此向过往的读者求助,如果你使用简体中文的 Linux 环境,碰巧 /etc/default 目录下也有 locate 文件,请将其内容张贴一份到本文后。Toy 在此先说声谢谢了。

关于 Nathive

据 Nathive 官方网站介绍,Nathive 是一个与 Adobe Photoshop、Corel Photo-Paint、The GIMP 等相似的图像编辑器。其主要特点是轻量级,更易学习和使用。如果大家有兴趣,可到 Nathive 官方网站了解详情:

http://www.nathive.org

下面是一段 Nathive 演示视频:

更新:感谢大家的帮助,我已将相关信息发送给作者,大家不用再张贴了。

Read More:

26 Comments

  1. 1 fcicq Commented @ 2008-11-09 10:38Reply to this comment

    Toy 直接召唤用 Debian / Ubuntu 的同学进来吧...

    这个文件或许应该是 mlocate 包里面的? (猜测而已...)

  2. 2 fcicq Commented @ 2008-11-09 10:42Reply to this comment

    如果是他拼错了, /etc/default/locale 的话, 一般一句 LANG="zh_CN.UTF-8" 就好了.

  3. 3 Shenorma Commented @ 2008-11-09 10:45Reply to this comment

    我这边 /etc/default/locale 文件就两行内容:

    LANG=zhCN.UTF-8 LANGUAGE="zhCN:zh"

  4. 4 Shenorma Commented @ 2008-11-09 10:46Reply to this comment

    locate?我是直接看错了……抱歉

  5. 5 fanqo Commented @ 2008-11-09 10:57Reply to this comment

    没发现有locate啊,只有一个locale,内容和3楼的一样。

  6. 6 Toy Commented @ 2008-11-09 10:58Reply to this comment

    @fcicq: 我刚刚又看了一遍作者的来信,这是他的原话:

    I'm doing a automatic language detector for nathive, can you send me your '/etc/default/locate' file?

    也许真的拼错了。我问问看。

    @Shenorma: 多谢。

  7. 7 wwdcfw Commented @ 2008-11-09 11:27Reply to this comment

    这个小东西除了画笔其它功能都没实现

    安装包只有33KB,太夸张了

  8. 8 Ivan Chen(西滨) Commented @ 2008-11-09 11:37Reply to this comment

    我的: LANG="zhCN.UTF-8" LANGUAGE="zhCN:zh:en_US:en"

  9. 9 雪梨 Commented @ 2008-11-09 12:03Reply to this comment

    $ cat /etc/default/locate cat: /etc/default/locate: 没有该文件或目录

    $ cat /etc/default/locale LANG="zhCN.UTF-8" LANGUAGE="zhCN:zh"

    待会,检测语言为何需要 /etc/default/locale 啊, 直接用 locale 不好么

  10. 10 外行 Commented @ 2008-11-09 12:32Reply to this comment

    Ubuntu8.10

    cat /etc/default/locate

    LANG="zhCN.UTF-8" LANGUAGE="zhCN:zh:en_US:en"

  11. 11 外行 Commented @ 2008-11-09 12:33Reply to this comment

    俺也拼错了,应该是locale,不好意思。

  12. 12 dingar Commented @ 2008-11-09 12:44Reply to this comment

    ubutnu 8.10 LANG="zhCN.UTF-8" LANGUAGE="zhCN:zh:en_US:en"

  13. 13 Toy Commented @ 2008-11-09 13:19Reply to this comment

    @Ivan Chen(西滨), @雪梨, @外行, @dingar: 谢谢各位,我已发给作者。

  14. 14 latent Commented @ 2008-11-09 14:11Reply to this comment

    LANG="zhCN.UTF-8" LANGUAGE="zhCN:zh:en_US:en"

  15. 15 iceFire Commented @ 2008-11-09 15:34Reply to this comment

    icefire@desktop:~/Desktop$ cat /etc/default/locale LANG="zhCN.UTF-8" LANGUAGE="zhCN:zh:en_US:en"

    LANG="zh_CN.UTF-8"

    LANGUAGE="zhCN:zh:enUS:en"


    ubuntu 8.10

  16. 16 gnawux Commented @ 2008-11-09 15:59Reply to this comment

    只有个 /etc/default/locale 哈

    LANG=zhCN.UTF-8 LANGUAGE="zhCN:zh"

    debian sid

  17. 17 Toy Commented @ 2008-11-09 16:03Reply to this comment

    @latent, @iceFire, @gnawux: 感谢,大家可以不用贴了,我已经将相关信息发给作者了。

  18. 18 jiqing Commented @ 2008-11-09 16:29Reply to this comment

    只有/etc/default/locale,没有locate 我的是debian etch

  19. 19 kai Commented @ 2008-11-09 16:56Reply to this comment

    还真让这个视频给忽悠了,概念图?就算是好像也就实现了个笔刷功能,最起码再实现个线形功能吧。subtitleeditor都实现那么多功能了才吧版本号定为0.25,这个是不是有点急功近利了?

  20. 20 bravo.hening Commented @ 2008-11-09 21:57Reply to this comment

    bravo% cat /etc/default/locale LANG="zhCN.UTF-8" LANGUAGE="zhCN:zh"

  21. 21 flowercold Commented @ 2008-11-09 22:41Reply to this comment

    ubuntu 8.04

    LANG="zhCN.UTF-8" LANGUAGE="zhCN:zh:en_US:en"

  22. 22 flowercold Commented @ 2008-11-09 22:43Reply to this comment

    \etc\default\locale

  23. 23 wangdu2002 Commented @ 2008-11-09 22:50Reply to this comment

    我是Ubuntu810系统,没有Locate,只有Locale,和三楼一样,只有两行,内容也一样

  24. 24 Dig Commented @ 2008-11-09 23:34Reply to this comment

    ubuntu 8.04 -> 8.10 $ uname -a Linux Dig 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linux

    $ cat /etc/default/locale LANG="zhCN.UTF-8" LANGUAGE="zhCN:zh"

  25. 25 keenan chen Commented @ 2008-11-10 0:06Reply to this comment

    keenan@keenan-laptop:~$ cat /etc/default/locale LANG="enUS.UTF-8" LANGUAGE="enUS:en"

  26. 26 weizi Commented @ 2008-11-10 7:54Reply to this comment

    centos 5.2没有这个文件