LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

求助:需要一份 /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 演示视频:

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

署名 • 注明出处 • 非商业性使用

26 Comments

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

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

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

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

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

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

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

    LANG=zh_CN.UTF-8
    LANGUAGE=”zh_CN:zh”

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

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

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

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

  6. 6 Toy Commented @ 2008-11-09 10:58 amReply 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:27 amReply to this comment

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

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

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

    我的:
    LANG=”zh_CN.UTF-8″
    LANGUAGE=”zh_CN:zh:en_US:en”

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

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

    $ cat /etc/default/locale
    LANG=”zh_CN.UTF-8″
    LANGUAGE=”zh_CN:zh”

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

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

    Ubuntu8.10

    cat /etc/default/locate

    LANG=”zh_CN.UTF-8″
    LANGUAGE=”zh_CN:zh:en_US:en”

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

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

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

    ubutnu 8.10
    LANG=”zh_CN.UTF-8″
    LANGUAGE=”zh_CN:zh:en_US:en”

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

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

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

    LANG=”zh_CN.UTF-8″
    LANGUAGE=”zh_CN:zh:en_US:en”

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

    icefire@desktop:~/Desktop$ cat /etc/default/locale
    LANG=”zh_CN.UTF-8″
    LANGUAGE=”zh_CN:zh:en_US:en”
    #LANG=”zh_CN.UTF-8″
    #LANGUAGE=”zh_CN:zh:en_US:en”

    ——————————-
    ubuntu 8.10

  16. 16 gnawux Commented @ 2008-11-09 3:59 pmReply to this comment

    只有个 /etc/default/locale 哈

    LANG=zh_CN.UTF-8
    LANGUAGE=”zh_CN:zh”

    debian sid

  17. 17 Toy Commented @ 2008-11-09 4:03 pmReply to this comment

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

  18. 18 jiqing Commented @ 2008-11-09 4:29 pmReply to this comment

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

  19. 19 kai Commented @ 2008-11-09 4:56 pmReply to this comment

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

  20. 20 bravo.hening Commented @ 2008-11-09 9:57 pmReply to this comment

    bravo% cat /etc/default/locale
    LANG=”zh_CN.UTF-8″
    LANGUAGE=”zh_CN:zh”

  21. 21 flowercold Commented @ 2008-11-09 10:41 pmReply to this comment

    ubuntu 8.04

    LANG=”zh_CN.UTF-8″
    LANGUAGE=”zh_CN:zh:en_US:en”

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

    \etc\default\locale

  23. 23 wangdu2002 Commented @ 2008-11-09 10:50 pmReply to this comment

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

  24. 24 Dig Commented @ 2008-11-09 11:34 pmReply 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=”zh_CN.UTF-8″
    LANGUAGE=”zh_CN:zh”

  25. 25 keenan chen Commented @ 2008-11-10 12:06 amReply to this comment

    keenan@keenan-laptop:~$ cat /etc/default/locale
    LANG=”en_US.UTF-8″
    LANGUAGE=”en_US:en”

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

    centos 5.2没有这个文件