Re: original file finding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 9/11/24 9:29 PM, Dongliang Mu wrote:
> On Wed, Sep 11, 2024 at 6:11 PM Alex Shi <seakeel@xxxxxxxxx> wrote:
>>
>> Hi Dongliang:
>>
>> In scripts/checktransupdate.py,
>> def get_origin_path(file_path):
>>     paths = file_path.split("/")
>>     tidx = paths.index("translations")
>>     opaths = paths[:tidx]
>>     opaths += paths[tidx + 2 :]
>>     return "/".join(opaths)
> 
> cc +ziqiu
> 
> Could you take a look at this function?
> 
>>
>> It use a different way instead of the ':Original:' line to find out the origin file.
>> That may cause file finding failed if we have a different dir map for translation.
> 
> Yes, this is more reasonable. BTW, is this enforced in the Chinese or
> other language translation?

It should be used in all language.

> 
>>
>> Yes, we have no worry since all of them are same. But could we take the ':Original:' usage for a possible dir map changes?
> 
> Yeah, at least we can take the current method as backup for original
> file location.

good idea!

> 
>>
>> Anyway, just a quick idea.
>>
>> Thanks
>> Alex
>>




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux