Changeset 5683

Show
Ignore:
Timestamp:
02/24/10 19:08:50 (3 years ago)
Author:
blogic
Message:

make languages load fromt the correct path

Location:
luci2/cbi2
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • luci2/cbi2/cbi.c

    r5682 r5683  
    544544} 
    545545 
    546 static const char* cbi_virt_path(struct cbi_ctx *ctx, const char *path, const char *file) 
     546const char* cbi_virt_path(struct cbi_ctx *ctx, const char *path, const char *file) 
    547547{ 
    548548    static char buf[256]; 
  • luci2/cbi2/cbi.h

    r5682 r5683  
    108108int cbi_dump_blob(char *file); 
    109109void cbi_request(struct cbi_ctx *ctx, char *request); 
     110const char* cbi_virt_path(struct cbi_ctx *ctx, const char *path, const char *file); 
    110111 
    111112void cbi_widget_register(char *name, struct cbi_widget *w); 
  • luci2/cbi2/lang.c

    r5682 r5683  
    88    if(ctx->lmo) 
    99        lmo_close(ctx->lmo); 
    10     ctx->lmo = (lmo_archive_t *)lmo_open(file); 
     10    printf("loading %s\n", cbi_virt_path(ctx, ctx->path, file)); 
     11    ctx->lmo = (lmo_archive_t *)lmo_open(cbi_virt_path(ctx, ctx->path, file)); 
    1112    if(!ctx->lmo) 
    1213    { 
  • luci2/cbi2/Makefile

    r5682 r5683  
    3030 
    3131run: $(BINARY) 
    32     mkdir -p ./root 
     32    mkdir -p ./root/lib/luci2/ ./root/etc/config/ 
    3333    cp *.luci ./root/lib/luci2/ 
    34     ./lmo_po2lmo en.po en.lmo 
    35     ./luci -s -V ./root/ 
     34    cp luci.uci ./root/etc/config/luci 
     35    ./lmo_po2lmo en.po ./root/lib/luci2/en.lmo 
     36    ./luci -s -V ./root 
    3637 
    3738%.o: $(wildcard *.h)