Changeset 56 in code for trunk


Ignore:
Timestamp:
Jan 19, 2024, 3:40:12 PM (17 months ago)
Author:
yakumo.izuru
Message:

プロジェクトの名前を「マイ」に変更します

Location:
trunk
Files:
5 added
5 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/.gitignore

    r55 r56  
    1 /simplytranslate
     1/mai
    22*.gz
  • trunk/Dockerfile

    r48 r56  
    33COPY . .
    44RUN go mod download
    5 RUN go build -o simplytranslate
     5RUN go build -o mai
    66EXPOSE 5000
    7 CMD [ "./simplytranslate" ]
     7CMD [ "./mai" ]
  • trunk/Makefile

    r55 r56  
    22
    33build:
    4         go build -v ./cmd/simplytranslate
     4        go build -v ./cmd/mai
    55clean:
    6         rm -f simplytranslate
     6        rm -f mai
    77install:
    8         install -Dm0755 simplytranslate ${DESTDIR}${PREFIX}/bin/simplytranslate
    9         mkdir -p ${DESTDIR}${PREFIX}/share/simplytranslate
    10         cp -R static views ${DESTDIR}${PREFIX}/share/simplytranslate
     8        install -Dm0755 mai ${DESTDIR}${PREFIX}/bin/mai
     9        mkdir -p ${DESTDIR}${PREFIX}/share/mai
     10        cp -R static views ${DESTDIR}${PREFIX}/share/mai
    1111uninstall:
    12         rm -f ${DESTDIR}${PREFIX}/bin/simplytranslate
    13         rm -rf ${DESTDIR}${PREFIX}/share/simplytranslate
     12        rm -f ${DESTDIR}${PREFIX}/bin/mai
     13        rm -rf ${DESTDIR}${PREFIX}/share/mai
  • trunk/README.md

    r55 r56  
    1 ## SimplyTranslate
     1## Mai
    22A privacy friendly frontend to multiple translation engines.
    33
     
    662. Fattalion created a Go implementation.
    773. Both metalune and fattalion retired, and they handed SimplyTranslate over to ManeraKai.
    8 4. [Izuru Yakumo The Violet Hermit](https://geidontei.chaotic.ninja/usr/yakumo_izuru) stole it
     84. [Izuru Yakumo The Violet Hermit](https://geidontei.chaotic.ninja/usr/yakumo_izuru) stole it, and renamed it after [Mai](https://en.touhouwiki.net/wiki/Mai) from [Mystic Square](https://en.touhouwiki.net/wiki/Mystic_Square)
    99
    1010### Installation
    1111
    1212```shell
    13 % git clone https://git.chaotic.ninja/yakumo.izuru/simplytranslate
    14 % cd simplytranslate
     13% git clone https://git.chaotic.ninja/yakumo.izuru/mai
     14% cd mai
    1515% make
    1616# make install
     
    2828
    2929### Legal notice
    30 SimplyTranslate does not host any content. All content shown on any SimplyTranslate instances is from [Google Translate](https://translate.google.com) and [Reverso](https://www.reverso.net/).
     30Mai does not host any content. All content shown on any Mai/Mozhi/SimplyTranslate instances is from [Google Translate](https://translate.google.com) and [Reverso](https://www.reverso.net/).
    3131
    32 SimplyTranslate is not affiliated with Google Translate nor Reverso that SimplyTranslate relays.
     32Mai is not affiliated with Google Translate nor Reverso, which this program relays.
    3333
    3434Trademarks belong to their respective owners.
     
    3636
    3737The creators and maintainers of this repository assume no liability for the accuracy and timeliness of any information provided above. Trademark owner information was researched to the best of the author's knowledge at the time of curation and may be outdated or incorrect.
     38
     39### Other projects
     40* [Mozhi](https://codeberg.org/aryak/mozhi), also a fork of SimplyTranslate
  • trunk/docker-compose.yml

    r51 r56  
    22
    33services:
    4   simplytranslate:
    5     container_name: simplytranslate
     4  mai:
     5    container_name: mai
    66    build:
    77      context: .
  • trunk/rc.d/FreeBSD

    r55 r56  
    22# $TheSupernovaDuo$
    33#
    4 # PROVIDE: simplytranslate
     4# PROVIDE: mai
    55# REQUIRE: DAEMON NETWORKING syslog
    66# KEYWORD: shutdown
     
    99. /etc/rc.subr
    1010
    11 name="simplytranslate"
    12 rcvar="simplytranslate_enable"
     11name="mai"
     12rcvar="mai_enable"
    1313
    1414load_rc_config $name
    1515
    16 : ${simplytranslate_user:="www"}
    17 : ${simplytranslate_enable:="NO"}
    18 : ${simplytranslate_config="/usr/local/etc/simplytranslate/simplytranslate.ini"}
     16: ${mai_user:="www"}
     17: ${mai_enable:="NO"}
     18: ${mai_config="/usr/local/etc/mai/mai.ini"}
    1919
    2020pidfile="/var/run/${name}.pid"
    2121command="/usr/sbin/daemon"
    2222procname="/usr/local/bin/${name}"
    23 simplytranslate_args="-f ${simplytranslate_config}"
    24 command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${simplytranslate_args}"
     23mai_args="-f ${mai_config}"
     24command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${mai_args}"
    2525
    2626run_rc_command "$1"
  • trunk/rc.d/OpenBSD

    r55 r56  
    22# $TheSupernovaDuo$
    33
    4 daemon="/usr/local/bin/simplytranslate"
    5 daemon_flags="-f /usr/local/etc/simplytranslate/simplytranslate.ini"
     4daemon="/usr/local/bin/mai"
     5daemon_flags="-f /usr/local/etc/mai/mai.ini"
    66
    77. /etc/rc.d/rc.subr
  • trunk/views/index.html

    r55 r56  
    22<html lang="en">
    33  <head>
    4     <title>SimplyTranslate</title>
     4    <title>Mai</title>
    55    <link rel="shortcut icon" href="/static/favicon.ico">
    66    <meta name="description" content="Experience simple and private translations">
     
    1313  <body>
    1414    <header class="center">
    15       <h1>SimplyTranslate</h1>
     15      <h1>Mai</h1>
    1616    </header>
    1717    <form action="/?engine={{.Engine}}" method="POST" id="translation-form">
     
    127127    <br><br><br><br><br>
    128128    <footer class="center">
    129             <a href="https://git.chaotic.ninja/yakumo.izuru/simplytranslate">Source code</a><br>
    130             <p>a <em>Mirage AIB</em> project</p>
     129            <p>
     130            <a href="https://git.chaotic.ninja/yakumo.izuru/mai">Source code</a><br>
     131            a <em>Mirage AIB</em> project | Favicon source is <a href="https://pixiv.net/en/artworks/97787072">ユキマイ</a>
     132            </p>
    131133    </footer>
    132134    <script src="/static/script.js"></script>
Note: See TracChangeset for help on using the changeset viewer.