1234567891011121314151617 |
- #!/bin/sh
- # usage: translate-general-ent.sh general.ent general-cn.ent
- sed -e '/releasedate/s@"\([A-Za-z]*\) \([0-9]*\), \([0-9]*\)"@"\3 年 \1 月 \2 日"@' \
- -e '/releasedate/s@Jan[a-z]*@1@' \
- -e '/releasedate/s@Feb[a-z]*@2@' \
- -e '/releasedate/s@Mar[a-z]*@3@' \
- -e '/releasedate/s@Apr[a-z]*@4@' \
- -e '/releasedate/s@May[a-z]*@5@' \
- -e '/releasedate/s@Jun[a-z]*@6@' \
- -e '/releasedate/s@Jul[a-z]*@7@' \
- -e '/releasedate/s@Aug[a-z]*@8@' \
- -e '/releasedate/s@Sept[a-z]*@9@' \
- -e '/releasedate/s@Oct[a-z]*@10@' \
- -e '/releasedate/s@Nov[a-z]*@11@' \
- -e '/releasedate/s@Dec[a-z]*@12@' $1 > $2
|